support for _T()
authorAlex Kirhenshtein <alk@netxms.org>
Sun, 10 May 2009 13:31:50 +0000 (13:31 +0000)
committerAlex Kirhenshtein <alk@netxms.org>
Sun, 10 May 2009 13:31:50 +0000 (13:31 +0000)
tools/header2java.py

index 8eb8fa5..3998e21 100755 (executable)
@@ -16,6 +16,8 @@ for line in fInput.readlines():
        if match:
                name = match.group(1).strip()
                value = match.group(2).strip()
+               if value[0:3] == "_T(":
+                        value = value[3:-1]
                if len(value) > 0:
                        fOutput.write("private static final int %s = %s;\n" % (name, value))
 fInput.close()