summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-01-16 17:43:06 -0700
committerKarl Williamson <khw@cpan.org>2019-03-13 18:17:55 -0600
commit164e423c70b80a4c3880f33561005d1fb870699c (patch)
treeb40c30cbcdab7bac8904dc6afde4325d947c0b9e /proto.h
parent26b0dc0c52fbcb48a1f10935a8dd8f0b0d4c9209 (diff)
downloadperl-164e423c70b80a4c3880f33561005d1fb870699c.tar.gz
toke.c: Change API of static function
This will be useful in future commits. new_constant() is changed so that if an extra parameter is not NULL, it sets it to point to an error message instead of raising the message itself. Thus its caller can choose to handle errors itself.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto.h b/proto.h
index 31d77c1e4e..4da4188f28 100644
--- a/proto.h
+++ b/proto.h
@@ -6074,7 +6074,7 @@ STATIC I32 S_lop(pTHX_ I32 f, U8 x, char *s);
PERL_STATIC_NO_RET void S_missingterm(pTHX_ char *s, STRLEN len)
__attribute__noreturn__;
-STATIC SV* S_new_constant(pTHX_ const char *s, STRLEN len, const char *key, STRLEN keylen, SV *sv, SV *pv, const char *type, STRLEN typelen);
+STATIC SV* S_new_constant(pTHX_ const char *s, STRLEN len, const char *key, STRLEN keylen, SV *sv, SV *pv, const char *type, STRLEN typelen, const char ** error_msg);
#define PERL_ARGS_ASSERT_NEW_CONSTANT \
assert(key); assert(sv)
STATIC void S_no_op(pTHX_ const char *const what, char *s);