Make sure to strip trailing semicolons from inputmap
authorSteffen Mueller <smueller@cpan.org>
Sun, 21 Aug 2011 11:35:14 +0000 (13:35 +0200)
committerSteffen Mueller <smueller@cpan.org>
Sun, 21 Aug 2011 13:03:50 +0000 (15:03 +0200)
commit4fdacf635adc3ab81af6714f5f4ac3692f11f378
tree451a3eb1f15b068e7456cd13dba9d58adf4cd0a8
parent45fef53488278d882a5b00bace266de60a7993e9
Make sure to strip trailing semicolons from inputmap

If we don't get that right, there may be additional semicolons in
the output C code. Those will be interpreted as empty statements
which is a problem for strict/old compilers which require strict
separation of declarations and other code.

Reported by Torsten Schoenfeld, diagnosed by Thorsten and Jan Dubois.
dist/ExtUtils-ParseXS/lib/ExtUtils/Typemaps.pm
dist/ExtUtils-ParseXS/lib/ExtUtils/Typemaps/InputMap.pm
dist/ExtUtils-ParseXS/t/002-more.t
dist/ExtUtils-ParseXS/t/XSMore.xs