supported setting initial value on declaration (NB, will give compilation error if using recursive option)

This commit is contained in:
William Lupton
1998-10-01 21:29:13 +00:00
parent f9fdb88d73
commit 163853f5bc
+4
View File
@@ -17,6 +17,7 @@
01mar94,ajk Changed algorithm for assigning event bits.
13jan98,wfl Supported E_COMMA token (for compound expressions).
09mar98,wfl Avoided compilation warnings under Tornado
01oct98,wfl Supported setting initial value on declaration.
***************************************************************************/
/*#define DEBUG 1*/
@@ -315,6 +316,9 @@ gen_var_decl()
if (vp->type == V_STRING)
printf("[MAX_STRING_SIZE]");
if (vp->value != NULL)
printf(" = %s", vp->value);
printf(";\n");
}
if (reent_opt)