This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Introduce validate_proto / stop stripping spaces
authorPeter Martini <PeterCMartini@GMail.com>
Mon, 1 Jul 2013 22:13:42 +0000 (18:13 -0400)
committerTony Cook <tony@develop-help.com>
Fri, 5 Jul 2013 07:04:37 +0000 (17:04 +1000)
commitfe788d6b2d59a57d2291c20e100cbc7dcf6fd8d1
tree8042c8d041a08167991eb8ad39bae15495752940
parentb4fd0ac8061d586061c5235f99033a5b56fc97b8
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.
embed.fnc
embed.h
proto.h
t/comp/proto.t
toke.c