ソースを参照

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)