瀏覽代碼

Consistent naming of structs (..._T)

Julius Pfrommer 11 年之前
父節點
當前提交
71d1469089
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)