Commit 238d5e66 authored by Stefan Behnel's avatar Stefan Behnel

fix struct auto-typedef-ing

parent 03058af2
...@@ -849,7 +849,8 @@ class CStructOrUnionDefNode(StatNode): ...@@ -849,7 +849,8 @@ class CStructOrUnionDefNode(StatNode):
self.name, struct_entry.type, self.pos, self.name, struct_entry.type, self.pos,
cname = self.cname, visibility='ignore') cname = self.cname, visibility='ignore')
struct_entry.type.typedef_flag = False struct_entry.type.typedef_flag = False
struct_entry.cname = struct_entry.type.cname = env.new_const_cname() # FIXME: this might be considered a hack ;-)
struct_entry.cname = struct_entry.type.cname = '_' + self.cname
def analyse_expressions(self, env): def analyse_expressions(self, env):
pass pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment