4.4BSD/usr/src/contrib/mh-6.8/zotnet/tws/lexedit.sed

2,/^extern int yylineno;$/c\
static int start_cond = 0;\
#define BEGIN start_cond =
/^struct yysvf \*yyestate;$/,/^extern struct yysvf yysvec/d
/^# define YYNEWLINE /,/^int nstr;/d
/^while((nstr = yylook()/,/^if(yywrap()) /d
/^case -1:$/,/^} return(0); }/c\
	default: return(0);\
} }
/^struct yysvf *yybgin = yysvec+1;$/d
/^int yylineno /,$d
/^# define YYTYPE short/c\
# define YYTYPE int
/^unsigned char yymatch\[\] = {/c\
char yymatch[] = {
/^unsigned char yyextra\[\] = {/c\
char yyextra[] = {
/^# define YYTYPE unsigned short/c\
# define YYTYPE int
/^if (__once_yylex) {$/,/if(yymbcurmax<=0) yymbcurmax=MB_CUR_MAX;$/d