diff options
author | Karl Williamson <khw@khw-desktop.(none)> | 2010-07-25 13:13:10 -0600 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2010-07-27 09:42:01 +0200 |
commit | 454155d98d52c903969d4c71a5cd1f2f269aaf5f (patch) | |
tree | 1eac25e5f85dd8b517e82387bb6f392022be8732 /toke.c | |
parent | 154bd5274ebc449c2a37261db17c2e721d16078d (diff) | |
download | perl-454155d98d52c903969d4c71a5cd1f2f269aaf5f.tar.gz |
Change function signature of grok_bslash_o
The previous return value where NULL meant OK is outside-the-norm.
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2883,10 +2883,11 @@ S_scan_const(pTHX_ char *start) case 'o': { STRLEN len; + const char* error; - char* error = grok_bslash_o(s, &uv, &len, 1); + bool valid = grok_bslash_o(s, &uv, &len, &error, 1); s += len; - if (error) { + if (! valid) { yyerror(error); continue; } |