summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorPeter Martini <PeterCMartini@GMail.com>2013-07-01 18:13:42 -0400
committerTony Cook <tony@develop-help.com>2013-07-05 17:04:37 +1000
commitfe788d6b2d59a57d2291c20e100cbc7dcf6fd8d1 (patch)
tree8042c8d041a08167991eb8ad39bae15495752940 /embed.h
parentb4fd0ac8061d586061c5235f99033a5b56fc97b8 (diff)
downloadperl-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 'embed.h')
-rw-r--r--embed.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed.h b/embed.h
index 0666e6f453..6f3ac5afe8 100644
--- a/embed.h
+++ b/embed.h
@@ -868,6 +868,7 @@
#define reg_temp_copy(a,b) Perl_reg_temp_copy(aTHX_ a,b)
#define regprop(a,b,c) Perl_regprop(aTHX_ a,b,c)
#define report_uninit(a) Perl_report_uninit(aTHX_ a)
+#define validate_proto(a,b,c) Perl_validate_proto(aTHX_ a,b,c)
#define vivify_defelem(a) Perl_vivify_defelem(aTHX_ a)
#define yylex() Perl_yylex(aTHX)
# if defined(DEBUGGING)