In dbLex.l, I guess the isprint() could change to something else? isprint() && !isspace(). Or maybe isgraph() if this is portable.
> if (isprint((int) yytext[0])) { > sprintf(message, "Invalid character '%c'", yytext[0]); > } > else { > sprintf(message, "Invalid character 0x%2.2x", yytext[0]); > }
Offset tracking would be nice, but may be a more complex change.
In dbLex.l, I guess the isprint() could change to something else? isprint() && !isspace(). Or maybe isgraph() if this is portable.
> if (isprint((int) yytext[0])) {
> sprintf(message, "Invalid character '%c'", yytext[0]);
> }
> else {
> sprintf(message, "Invalid character 0x%2.2x", yytext[0]);
> }
Offset tracking would be nice, but may be a more complex change.