summaryrefslogtreecommitdiff
path: root/embed.fnc
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 /embed.fnc
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 'embed.fnc')
-rw-r--r--embed.fnc7
1 files changed, 4 insertions, 3 deletions
diff --git a/embed.fnc b/embed.fnc
index 4b04389c20..8474170f0e 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -2786,10 +2786,11 @@ sR |I32 |sublex_start
sR |char * |filter_gets |NN SV *sv|STRLEN append
sR |HV * |find_in_my_stash|NN const char *pkgname|STRLEN len
sR |char * |tokenize_use |int is_use|NN char *s
-so |SV* |new_constant |NULLOK const char *s|STRLEN len \
+so |SV* |new_constant |NULLOK const char *s|STRLEN len \
|NN const char *key|STRLEN keylen|NN SV *sv \
- |NULLOK SV *pv|NULLOK const char *type \
- |STRLEN typelen
+ |NULLOK SV *pv|NULLOK const char *type \
+ |STRLEN typelen \
+ |NULLOK const char ** error_msg
s |int |ao |int toketype
s |void|parse_ident|NN char **s|NN char **d \
|NN char * const e|int allow_package \