summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>1998-01-09 12:55:09 -0500
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-06 15:53:53 +0000
commit8c52afecd5252bed5ed8df3a63a6cd9affde4ab4 (patch)
treebf76561b68d175b89a738902a9cce82ceb3cb23c /handy.h
parentcdaebead333273a920fe10cbcb2213a9fbefa241 (diff)
downloadperl-8c52afecd5252bed5ed8df3a63a6cd9affde4ab4.tar.gz
Newer -DLEAKTEST patch
p4raw-id: //depot/perl@466
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/handy.h b/handy.h
index de3028f121..51824f3180 100644
--- a/handy.h
+++ b/handy.h
@@ -244,7 +244,10 @@ typedef U16 line_t;
#define NOLINE ((line_t) 65535)
#endif
-/* XXX LEAKTEST doesn't really work in perl5. There are direct calls to
+
+/* This looks obsolete (IZ):
+
+ XXX LEAKTEST doesn't really work in perl5. There are direct calls to
safemalloc() in the source, so LEAKTEST won't pick them up.
Further, if you try LEAKTEST, you'll also end up calling
Safefree, which might call safexfree() on some things that weren't
@@ -278,12 +281,16 @@ typedef U16 line_t;
(v = (t*)safexrealloc((Malloc_t)(v),(MEM_SIZE)((n)*sizeof(t))))
#define Renewc(v,n,t,c) \
(v = (c*)safexrealloc((Malloc_t)(v),(MEM_SIZE)((n)*sizeof(t))))
-#define Safefree(d) safexfree((Malloc_t)d)
+#define Safefree(d) safexfree((Malloc_t)(d))
#define NEWSV(x,len) newSV(x,len)
#define MAXXCOUNT 1400
-long xcount[MAXXCOUNT];
-long lastxcount[MAXXCOUNT];
+#define MAXY_SIZE 80
+#define MAXYCOUNT 16 /* (MAXY_SIZE/4 + 1) */
+extern long xcount[MAXXCOUNT];
+extern long lastxcount[MAXXCOUNT];
+extern long xycount[MAXXCOUNT][MAXYCOUNT];
+extern long lastxycount[MAXXCOUNT][MAXYCOUNT];
#endif /* LEAKTEST */