diff options
author | Karl Williamson <khw@cpan.org> | 2017-01-16 17:43:06 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-03-13 18:17:55 -0600 |
commit | 164e423c70b80a4c3880f33561005d1fb870699c (patch) | |
tree | b40c30cbcdab7bac8904dc6afde4325d947c0b9e /embed.fnc | |
parent | 26b0dc0c52fbcb48a1f10935a8dd8f0b0d4c9209 (diff) | |
download | perl-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.fnc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 \ |