summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@khw-desktop.(none)>2010-07-25 13:13:10 -0600
committerRafael Garcia-Suarez <rgs@consttype.org>2010-07-27 09:42:01 +0200
commit454155d98d52c903969d4c71a5cd1f2f269aaf5f (patch)
tree1eac25e5f85dd8b517e82387bb6f392022be8732 /toke.c
parent154bd5274ebc449c2a37261db17c2e721d16078d (diff)
downloadperl-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index 3ef1d3bfe9..455f977c01 100644
--- a/toke.c
+++ b/toke.c
@@ -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;
}