diff options
author | Peter Martini <PeterCMartini@GMail.com> | 2013-07-01 18:13:42 -0400 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2013-07-05 17:04:37 +1000 |
commit | fe788d6b2d59a57d2291c20e100cbc7dcf6fd8d1 (patch) | |
tree | 8042c8d041a08167991eb8ad39bae15495752940 /proto.h | |
parent | b4fd0ac8061d586061c5235f99033a5b56fc97b8 (diff) | |
download | perl-fe788d6b2d59a57d2291c20e100cbc7dcf6fd8d1.tar.gz |
Introduce validate_proto / stop stripping spaces
The code to do warnings on invalid prototypes was a chunk
of 70 or so lines inside the core lexer. It also had the
side effect of removing spaces from the prototype as part
of its check for warnings.
This validation code is now just a validation, printing
out warnings if and only if warnings are enabled,
and leaving the source SV untouched.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -4738,6 +4738,11 @@ PERL_CALLCONV UV Perl_valid_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen) #define PERL_ARGS_ASSERT_VALID_UTF8_TO_UVUNI \ assert(s) +PERL_CALLCONV bool Perl_validate_proto(pTHX_ SV *name, SV *proto, bool warn) + __attribute__nonnull__(pTHX_1); +#define PERL_ARGS_ASSERT_VALIDATE_PROTO \ + assert(name) + PERL_CALLCONV int Perl_vcmp(pTHX_ SV *lhv, SV *rhv) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); |