Had forgotten to initialise the line number on which a nonterminal
authorceriel <none@none>
Fri, 12 Oct 1984 14:19:34 +0000 (14:19 +0000)
committerceriel <none@none>
Fri, 12 Oct 1984 14:19:34 +0000 (14:19 +0000)
symbol occurred first.

util/LLgen/src/name.c

index 85ac104..2537b69 100644 (file)
@@ -169,6 +169,7 @@ search(type,str,option) register string str; {
 
                q = &nonterms[nnonterms];
                q->n_rule = 0;
+               q->n_lineno = linecount;
                q->n_string = f_input;
                q->n_follow = 0;
                q->n_flags = 0;