This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add Perl_ck_warner(), which combines Perl_ckwarn() and Perl_warner().
authorNicholas Clark <nick@ccl4.org>
Mon, 12 Oct 2009 15:06:20 +0000 (16:06 +0100)
committerNicholas Clark <nick@ccl4.org>
Mon, 12 Oct 2009 15:06:20 +0000 (16:06 +0100)
commita2a5de9516c1b256b060768ac6dad252a3aa3be7
treeaeb1473ea930984671f646814f6a7a7802164960
parent5f5991a0d6d8ef99d2643b88a7d9285e35277331
Add Perl_ck_warner(), which combines Perl_ckwarn() and Perl_warner().

Replace ckWARN{,2,3,4}() && Perl_warner() with it, which trades reduced code
size (about 0.2%), for 1 more function call if warnings are not enabled.
However, if we're now in the L1 or L2 cache when we weren't previously, that's
still going to be a speed win.
20 files changed:
doop.c
embed.fnc
embed.h
global.sym
gv.c
mg.c
numeric.c
op.c
pad.c
perl.c
perlio.c
pp.c
pp_ctl.c
pp_hot.c
pp_pack.c
pp_sys.c
proto.h
sv.c
toke.c
util.c