Subject: | Assertion problems in 0.79 |
A couple of problems with the PERL_ARGS_ASSERT_PRESCAN_VERSION assertion
in 0.79:
1. saw_period has been renamed elsewhere in the code to saw_decimal,
resulting in "undefined" errors in the resulting C code
2. assert(strict) is a problem since the only use of this macro is in a
call from vutil.c in which "strict" is explicitly set to FALSE.
Attached patch fixes these problems for me; I'm seeing the problems on
lots of old versions of Fedora/Red Hat Enterprise Linux, though somehow
it seems to build OK on more up to date releases.
Subject: | perl-version-0.79-assert.patch |
--- version-0.79/vutil/vutil.h 2010-01-10 14:08:42.000000000 +0000
+++ version-0.79/vutil/vutil.h 2010-01-11 14:00:25.700941525 +0000
@@ -41,7 +41,7 @@
(a != Perl_prescan_version(aTHX_ a, b, NULL, NULL, NULL, NULL))
#define PERL_ARGS_ASSERT_PRESCAN_VERSION \
- assert(s); assert(strict); assert(sqv); assert(ssaw_period);\
+ assert(s); assert(sqv); assert(ssaw_decimal);\
assert(swidth); assert(salpha);
#define PERL_ARGS_ASSERT_SCAN_VERSION \
assert(s); assert(rv)