Przeglądaj źródła

Consistent naming of structs (..._T)

Julius Pfrommer 11 lat temu
rodzic
commit
71d1469089
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tools/generate_builtin.py

+ 1 - 1
tools/generate_builtin.py

@@ -122,7 +122,7 @@ def createStructured(element):
     #    print ("type " + name + " is new Request_Base with "),
     # else:
     #    print ("type " + name + " is new UA_Builtin with "),
-    print("typedef struct T_" + name + " {", end='\n', file=fh)
+    print("typedef struct " + name + "_T {", end='\n', file=fh)
     if len(valuemap) == 0:
         typename = stripTypename(element.get("BaseType"))
         childname = camlCase2CCase(typename)