Subject: yacc problem
To: None <current-users@NetBSD.ORG>
From: Alain Kalker <>
List: current-users
Date: 04/11/1996 18:49:26
Hello to all,

When trying to build a program I noticed the following problem:

When using a yacc input file which contains the line

#define YYDEBUG

and letting yacc eat it, cc will subsequently barf on the empty #if lines
it sees after preprocessing.

It seems that yacc inserts


lines in its output.

Defining YYDEBUG to any non-empty value does work.

Possible solution: change the '#if YYDEBUG' to '#ifdef YYDEBUG' in yacc/output.c
Please consider.