(decode_type): TChoice: set the label

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15627 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-07-12 18:08:38 +00:00
parent b49d932283
commit d79bcbb3a6

View File

@@ -493,6 +493,9 @@ decode_type (const char *name, const Type *t, int optional,
if (s == NULL)
errx(1, "malloc");
decode_type (s, m->type, m->optional, forwstr);
fprintf(codefile,
"(%s)->element = %s;\n",
name, m->label);
free(s);
fprintf(codefile,
"}\n");