This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
assert() that every NN argument is not NULL. Otherwise we have the
authorNicholas Clark <nick@ccl4.org>
Tue, 12 Feb 2008 13:15:20 +0000 (13:15 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 12 Feb 2008 13:15:20 +0000 (13:15 +0000)
commit7918f24d20384771923d344a382e1d16d9552018
tree627e24f3c520f70ddfd3fc9779420bd72fd00c55
parent9f10164a6c9d93684fedbbc188fb9dfe004c22c4
assert() that every NN argument is not NULL. Otherwise we have the
ability to create landmines that will explode under someone in the
future when they upgrade their compiler to one with better
optimisation. We've already done this at least twice.
(Yes, some of the assertions are after code that would already have
SEGVd because it already deferences a pointer, but they are put in
to make it easier to automate checking that each and every case is
covered.)
Add a tool, checkARGS_ASSERT.pl, to check that every case is covered.

p4raw-id: //depot/perl@33291
42 files changed:
MANIFEST
NetWare/nw5.c
Porting/checkARGS_ASSERT.pl [new file with mode: 0755]
av.c
deb.c
doio.c
doop.c
dump.c
embed.pl
gv.c
hv.c
locale.c
malloc.c
mathoms.c
mg.c
mro.c
numeric.c
op.c
pad.c
perl.c
perlio.c
pp.c
pp_ctl.c
pp_hot.c
pp_pack.c
pp_sort.c
pp_sys.c
proto.h
reentr.c
reentr.pl
regcomp.c
regexec.c
scope.c
sv.c
taint.c
toke.c
universal.c
utf8.c
util.c
vms/vms.c
win32/win32.c
win32/wince.c