follow type naming convention

This commit is contained in:
anon 2023-09-26 12:50:14 +02:00
parent b8943a596e
commit 3bf23c07b5

View File

@ -7,15 +7,16 @@ class RegexPrinter:
# Regular shit # Regular shit
s += "accepting_state = " + str(self.val['accepting_state']) + ", str = " + str(self.val['str']) + ",\n" s += "accepting_state = " + str(self.val['accepting_state']) + ", str = " + str(self.val['str']) + ",\n"
# Delta # Delta
delta_t_ptr_ptr = gdb.lookup_type("delta_t").pointer().pointer() delta_t_ptr_ptr_t = gdb.lookup_type("delta_t").pointer().pointer()
dt = self.val['delta_table'] dt = self.val['delta_table']
s += "delta_table = {\n" s += "delta_table = {\n"
d0 = 0
for i in range(0, dt['element_count']): for i in range(0, dt['element_count']):
s += "\t" s += "\t"
s += ( s += (
str( str(
( (
dt['data'].cast(delta_t_ptr_ptr) dt['data'].cast(delta_t_ptr_ptr_t)
+ +
i i
).dereference().dereference() ).dereference().dereference()