c_structdef_cg.pm: Fix an error where we forgot to use the \{"name"\} member of the hash thus resulting in bad code being generated
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5478 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
c2f5375cb2
commit
82a2aea03f
|
@ -21,7 +21,7 @@ sub printStructFieldType
|
||||||
elsif (/real/) { $$output .= "float "; }
|
elsif (/real/) { $$output .= "float "; }
|
||||||
elsif (/bool/) { $$output .= "bool "; }
|
elsif (/bool/) { $$output .= "bool "; }
|
||||||
elsif (/set/) { $$output .= "bool "; }
|
elsif (/set/) { $$output .= "bool "; }
|
||||||
elsif (/enum/) { $$output .= "${$field}{\"enum\"} "; }
|
elsif (/enum/) { $$output .= "${${$field}{\"enum\"}}{\"name\"} "; }
|
||||||
elsif (/IMD_model/) { $$output .= "iIMDShape* "; }
|
elsif (/IMD_model/) { $$output .= "iIMDShape* "; }
|
||||||
elsif (/C-only-field/) { $$output .= "${$field}{\"ctype\"} "; }
|
elsif (/C-only-field/) { $$output .= "${$field}{\"ctype\"} "; }
|
||||||
else { die "UKNOWN TYPE: $_"; }
|
else { die "UKNOWN TYPE: $_"; }
|
||||||
|
|
Loading…
Reference in New Issue