summaryrefslogtreecommitdiff
path: root/tool/ytab.sed
diff options
context:
space:
mode:
Diffstat (limited to 'tool/ytab.sed')
-rwxr-xr-xtool/ytab.sed6
1 files changed, 6 insertions, 0 deletions
diff --git a/tool/ytab.sed b/tool/ytab.sed
index f956c065e2..46317db284 100755
--- a/tool/ytab.sed
+++ b/tool/ytab.sed
@@ -5,6 +5,12 @@ i\
a\
#endif
}
+/^extern int yydebug;/{
+i\
+#ifndef yydebug
+a\
+#endif
+}
/^yydestruct.*yymsg/,/#endif/{
/^yydestruct/{
/parser/!{