ceriel 22 years ago
parent
commit
9493d1cde9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      util/LLgen/src/gencode.c

+ 2 - 1
util/LLgen/src/gencode.c

@@ -144,7 +144,6 @@ gencode(argc) {
 		opentemp(f_input);
 		correct_prefix();
 		/* generate code ... */
-		genhdr();
 		generate(p);
 		getaction(2);
 		doclose(fpars);
@@ -363,6 +362,8 @@ generate(f) p_file f; {
 		macro(ff->ff_name,&nonterms[ff->ff_nont]);
 	}
 
+	genhdr();
+
 	/* For every nonterminal generate a function */
 	for (s = f->f_nonterminals; s != -1; s = p->n_next) {
 		p = &nonterms[s];