mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 13:53:03 +00:00
scan-gram: avoid portability trap with ctype usage.
* src/scan-gram.l (<SC_ESCAPED_STRING,SC_ESCAPED_CHARACTER>): Avoid compiler warning. Signed-off-by: Eric Blake <ebb9@byu.net>
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2009-08-27 Eric Blake <ebb9@byu.net>
|
||||||
|
|
||||||
|
scan-gram: avoid portability trap with ctype usage.
|
||||||
|
* src/scan-gram.l (<SC_ESCAPED_STRING,SC_ESCAPED_CHARACTER>):
|
||||||
|
Avoid compiler warning.
|
||||||
|
|
||||||
2009-08-27 Joel E. Denny <jdenny@clemson.edu>
|
2009-08-27 Joel E. Denny <jdenny@clemson.edu>
|
||||||
|
|
||||||
tests: use perl for printing special sequences to files.
|
tests: use perl for printing special sequences to files.
|
||||||
|
|||||||
@@ -439,7 +439,7 @@ splice (\\[ \f\t\v]*\n)*
|
|||||||
\\(.|\n) {
|
\\(.|\n) {
|
||||||
char const *p = yytext + 1;
|
char const *p = yytext + 1;
|
||||||
/* Quote only if escaping won't make the character visible. */
|
/* Quote only if escaping won't make the character visible. */
|
||||||
if (isspace (*p) && isprint (*p))
|
if (isspace ((unsigned char) *p) && isprint ((unsigned char) *p))
|
||||||
p = quote (p);
|
p = quote (p);
|
||||||
else
|
else
|
||||||
p = quotearg_style_mem (escape_quoting_style, p, 1);
|
p = quotearg_style_mem (escape_quoting_style, p, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user