summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-12-22 04:57:17 -0600
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-12-22 17:09:59 +0000
commitc445ea15829fa1ef23c4453a817f9c096a56a192 (patch)
treeb82a090e6005af218bbc846b84e47ce12b81d39e /dump.c
parentefa32bb49fad39e670c055d4b6f557a0d2e1a8a2 (diff)
downloadperl-c445ea15829fa1ef23c4453a817f9c096a56a192.tar.gz
Ho! Ho! Ho! Santa brings consting!
Message-ID: <20051222165717.GA2874@petdance.com> p4raw-id: //depot/perl@26450
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dump.c b/dump.c
index f07e95f3b7..0679ed991f 100644
--- a/dump.c
+++ b/dump.c
@@ -410,7 +410,7 @@ S_sequence(pTHX_ register const OP *o)
SV *op;
const char *key;
STRLEN len;
- const OP *oldop = 0;
+ const OP *oldop = NULL;
OP *l;
if (!o)
@@ -941,7 +941,7 @@ Perl_do_magic_dump(pTHX_ I32 level, PerlIO *file, const MAGIC *mg, I32 nest, I32
" MAGIC = 0x%"UVxf"\n", PTR2UV(mg));
if (mg->mg_virtual) {
const MGVTBL * const v = mg->mg_virtual;
- const char *s = 0;
+ const char *s = NULL;
if (v == &PL_vtbl_sv) s = "sv";
else if (v == &PL_vtbl_env) s = "env";
else if (v == &PL_vtbl_envelem) s = "envelem";
@@ -984,7 +984,7 @@ Perl_do_magic_dump(pTHX_ I32 level, PerlIO *file, const MAGIC *mg, I32 nest, I32
{
int n;
- const char *name = 0;
+ const char *name = NULL;
for (n = 0; magic_names[n].name; n++) {
if (mg->mg_type == magic_names[n].type) {
name = magic_names[n].name;
@@ -1381,7 +1381,8 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
PerlIO_printf(file, " (");
Zero(freq, FREQ_MAX + 1, int);
for (i = 0; (STRLEN)i <= HvMAX(sv); i++) {
- HE* h; int count = 0;
+ HE* h;
+ int count = 0;
for (h = HvARRAY(sv)[i]; h; h = HeNEXT(h))
count++;
if (count > FREQ_MAX)