diff options
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -3552,12 +3552,13 @@ S_scan_const(pTHX_ char *start) { const char* error; - bool valid = grok_bslash_o(&s, send, + if (! grok_bslash_o(&s, send, &uv, &error, - TRUE, /* Output warning */ + NULL, FALSE, /* Not strict */ - UTF); - if (! valid) { + FALSE, /* No illegal cp's */ + UTF)) + { yyerror(error); uv = 0; /* drop through to ensure range ends are set */ } @@ -3569,12 +3570,13 @@ S_scan_const(pTHX_ char *start) { const char* error; - bool valid = grok_bslash_x(&s, send, + if (! grok_bslash_x(&s, send, &uv, &error, - TRUE, /* Output warning */ + NULL, FALSE, /* Not strict */ - UTF); - if (! valid) { + FALSE, /* No illegal cp's */ + UTF)) + { yyerror(error); uv = 0; /* drop through to ensure range ends are set */ } |