Be more 8-bit safe.
[rsc] --rw-rw-r-- M 771144 glenda sys 4074 Feb 11 09:15 sys/lib/lex/ncform
/n/sourcesdump/2006/0211/plan9/sys/lib/lex/ncform:9,15 -
/n/sourcesdump/2006/0212/plan9/sys/lib/lex/ncform:9,15
extern struct yysvf *yyestate;
int yyprevious = YYNEWLINE;
# ifdef LEXDEBUG
- extern void allprint(char);
+ extern void allprint(int);
# endif
yylook(void){
struct yysvf *yystate, **lsp;
/n/sourcesdump/2006/0211/plan9/sys/lib/lex/ncform:113,119 -
/n/sourcesdump/2006/0212/plan9/sys/lib/lex/ncform:113,119
}
# ifdef LEXDEBUG
if(debug){
- fprintf(yyout,"stopped at %d with ",*(lsp-1)-yysvec-1);
+ fprintf(yyout,"stopped at %d with ",lsp>yylstate?*(lsp-1)-yysvec-1:0);
allprint(yych);
putchar('\n');
}
|