diff options
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/ytab.sed | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tool/ytab.sed b/tool/ytab.sed new file mode 100755 index 0000000000..4bb1c31fd1 --- /dev/null +++ b/tool/ytab.sed @@ -0,0 +1,10 @@ +#!/bin/sed -f +/^int yydebug;/{ +i\ +#ifndef yydebug +a\ +#endif +} +s/\<\(yyerror[ ]*([ ]*parser,\)/parser_\1/ +s!^ *extern char \*getenv();!/* & */! +s/^\(#.*\)".*\.tab\.c"/\1"parse.c"/ |