summaryrefslogtreecommitdiff
path: root/tool/ytab.sed
blob: d75367abed01dd1d5a609806bd5e81bf5a0c5ba1 (plain)
1
2
3
4
5
6
7
8
9
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"/