aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-09-30 09:46:06 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-09-30 09:46:06 -0300
commit9caf5b4f796879e16ccb2f6ebbc3887c604bc2f0 (patch)
treeafff26c2ab3a7ce6150325eaf7356d301c1053ea
parent50cddefeeb409ce3cd696abc5b1e6303089266a9 (diff)
downloadlua-9caf5b4f796879e16ccb2f6ebbc3887c604bc2f0.tar.gz
lua-9caf5b4f796879e16ccb2f6ebbc3887c604bc2f0.tar.bz2
lua-9caf5b4f796879e16ccb2f6ebbc3887c604bc2f0.zip
lint (unused definition)
-rw-r--r--llimits.h3
-rw-r--r--lstate.h4
-rw-r--r--ltable.c9
3 files changed, 3 insertions, 13 deletions
diff --git a/llimits.h b/llimits.h
index 67f7df54..d9445501 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.90 2011/07/02 15:57:25 roberto Exp roberto $ 2** $Id: llimits.h,v 1.91 2011/09/13 17:39:23 roberto Exp roberto $
3** Limits, basic types, and some other `installation-dependent' definitions 3** Limits, basic types, and some other `installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -30,7 +30,6 @@ typedef unsigned char lu_byte;
30#define MAX_SIZET ((size_t)(~(size_t)0)-2) 30#define MAX_SIZET ((size_t)(~(size_t)0)-2)
31 31
32#define MAX_LUMEM ((lu_mem)(~(lu_mem)0)-2) 32#define MAX_LUMEM ((lu_mem)(~(lu_mem)0)-2)
33#define MIN_LMEM ((l_mem)~((~(lu_mem)0)>>1))
34 33
35 34
36#define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */ 35#define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */
diff --git a/lstate.h b/lstate.h
index fb757373..b1538239 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.72 2011/06/02 19:31:40 roberto Exp roberto $ 2** $Id: lstate.h,v 2.73 2011/08/23 17:24:34 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -47,8 +47,6 @@ struct lua_longjmp; /* defined in ldo.c */
47#define EXTRA_STACK 5 47#define EXTRA_STACK 5
48 48
49 49
50#define BASIC_CI_SIZE 8
51
52#define BASIC_STACK_SIZE (2*LUA_MINSTACK) 50#define BASIC_STACK_SIZE (2*LUA_MINSTACK)
53 51
54 52
diff --git a/ltable.c b/ltable.c
index f6b765d4..d348d87f 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 2.63 2011/09/15 17:09:02 roberto Exp roberto $ 2** $Id: ltable.c,v 2.64 2011/09/24 21:12:01 roberto Exp roberto $
3** Lua tables (hash) 3** Lua tables (hash)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -64,13 +64,6 @@
64#define hashpointer(t,p) hashmod(t, IntPoint(p)) 64#define hashpointer(t,p) hashmod(t, IntPoint(p))
65 65
66 66
67/*
68** number of ints inside a lua_Number
69*/
70#define numints cast_int(sizeof(lua_Number)/sizeof(int))
71
72
73
74#define dummynode (&dummynode_) 67#define dummynode (&dummynode_)
75 68
76#define isdummy(n) ((n) == dummynode) 69#define isdummy(n) ((n) == dummynode)