# typedef_flag boolean
# packed boolean
+ # entry Entry
+
is_struct_or_union = 1
has_attributes = 1
self.to_py_function = None
self._convert_code = False
return False
- entry = env.lookup(self.name)
- forward_decl = (entry.visibility != 'extern')
+ forward_decl = (self.entry.visibility != 'extern')
self._convert_code = StructUtilityCode(self, forward_decl)
env.use_utility_code(self._convert_code)
entry = self.declare_type(name, type, pos, cname,
visibility = visibility, defining = scope is not None)
self.sue_entries.append(entry)
+ type.entry = entry
else:
if not (entry.is_type and entry.type.is_struct_or_union
and entry.type.kind == kind):