aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-05 17:08:01 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-05 17:08:01 -0200
commita894499566b80a5af20a410d2940f8ea25a5f471 (patch)
tree591206f1c17a1d6b61c87b31cd6b063cfee76bd4
parentd1fc6244f0bb4d042bb48a4121255f87692afd15 (diff)
downloadlua-a894499566b80a5af20a410d2940f8ea25a5f471.tar.gz
lua-a894499566b80a5af20a410d2940f8ea25a5f471.tar.bz2
lua-a894499566b80a5af20a410d2940f8ea25a5f471.zip
details
-rw-r--r--lmem.c10
-rw-r--r--ltests.h12
2 files changed, 10 insertions, 12 deletions
diff --git a/lmem.c b/lmem.c
index a631f4b1..bce76029 100644
--- a/lmem.c
+++ b/lmem.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmem.c,v 1.43 2001/01/19 13:20:30 roberto Exp roberto $ 2** $Id: lmem.c,v 1.44 2001/01/24 15:45:33 roberto Exp roberto $
3** Interface to Memory Manager 3** Interface to Memory Manager
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -42,10 +42,10 @@
42 42
43#define blocksize(b) ((size_t *)((char *)(b) - HEADER)) 43#define blocksize(b) ((size_t *)((char *)(b) - HEADER))
44 44
45mem_int memdebug_numblocks = 0; 45unsigned long memdebug_numblocks = 0;
46mem_int memdebug_total = 0; 46unsigned long memdebug_total = 0;
47mem_int memdebug_maxmem = 0; 47unsigned long memdebug_maxmem = 0;
48mem_int memdebug_memlimit = LONG_MAX; 48unsigned long memdebug_memlimit = ULONG_MAX;
49 49
50 50
51static void *checkblock (void *block) { 51static void *checkblock (void *block) {
diff --git a/ltests.h b/ltests.h
index 1cba13e4..9dda1c65 100644
--- a/ltests.h
+++ b/ltests.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: $ 2** $Id: ltests.h,v 1.1 2001/02/02 15:12:25 roberto Exp roberto $
3** Internal Header for Debugging of the Lua Implementation 3** Internal Header for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -8,8 +8,6 @@
8#define ltests_h 8#define ltests_h
9 9
10 10
11#include "llimits.h"
12
13 11
14#define LUA_DEBUG 12#define LUA_DEBUG
15 13
@@ -23,10 +21,10 @@
23 21
24 22
25/* memory allocator control variables */ 23/* memory allocator control variables */
26extern mem_int memdebug_numblocks; 24extern unsigned long memdebug_numblocks;
27extern mem_int memdebug_total; 25extern unsigned long memdebug_total;
28extern mem_int memdebug_maxmem; 26extern unsigned long memdebug_maxmem;
29extern mem_int memdebug_memlimit; 27extern unsigned long memdebug_memlimit;
30 28
31 29
32/* test for lock/unlock */ 30/* test for lock/unlock */