|
@@ -307,7 +307,7 @@ class StructType(object):
|
|
|
return layout + "}"
|
|
|
|
|
|
def functions_c(self, typeTableName):
|
|
|
- return '''#define %s_new() UA_new(%s)
|
|
|
+ return '''#define %s_new() (%s*)UA_new(%s)
|
|
|
|
|
|
|
|
|
|
|
@@ -315,7 +315,7 @@ class StructType(object):
|
|
|
|
|
|
|
|
|
|
|
|
- tuple(itertools.chain(*itertools.repeat([self.name, "&"+typeTableName+"[" + typeTableName + "_" + self.name[3:].upper()+"]"], 8)))
|
|
|
+ tuple([self.name] + list(itertools.chain(*itertools.repeat([self.name, "&"+typeTableName+"[" + typeTableName + "_" + self.name[3:].upper()+"]"], 8))))
|
|
|
|
|
|
def parseTypeDefinitions(xmlDescription, existing_types = OrderedDict()):
|
|
|
'''Returns an ordered dict that maps names to types. The order is such that
|