author | lbessard |
Thu, 20 Mar 2008 10:45:17 +0100 | |
changeset 420 | a42335b39bf4 |
parent 419 | f63ce68a8239 |
child 421 | 6221b4db8c42 |
--- a/objdictgen/gen_cfile.py Thu Mar 20 09:47:19 2008 +0100 +++ b/objdictgen/gen_cfile.py Thu Mar 20 10:45:17 2008 +0100 @@ -67,7 +67,10 @@ size = max(size, int(values[1])) typeinfos = ("UNS8", size, "visible_string", False) elif values[0] == "DOMAIN": - typeinfos = ("UNS8*", None, "domain", False) + size = 0 + for item in items: + size = max(size, len(item)) + typeinfos = ("UNS8*", size, "domain", False) elif values[0] == "BOOLEAN": typeinfos = ("UNS8", None, "boolean", False) else: