aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-08-06 14:06:56 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-08-06 14:06:56 -0300
commit634344d61fb4bd7ebd033d37b814a0083e55b5a2 (patch)
tree01794c51e00c7ec1faec1e08fe2963ee75b1a139 /lobject.h
parenta2fa48a570b01b2a2cd37f01799f08f693fc5892 (diff)
downloadlua-634344d61fb4bd7ebd033d37b814a0083e55b5a2.tar.gz
lua-634344d61fb4bd7ebd033d37b814a0083e55b5a2.tar.bz2
lua-634344d61fb4bd7ebd033d37b814a0083e55b5a2.zip
new API for weak mode
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lobject.h b/lobject.h
index e3dc6f95..805be05e 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 1.140 2002/07/17 16:25:13 roberto Exp $ 2** $Id: lobject.h,v 1.141 2002/08/05 14:08:02 roberto Exp roberto $
3** Type definitions for Lua objects 3** Type definitions for Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -223,8 +223,12 @@ typedef struct Table {
223 int sizearray; /* size of `array' array */ 223 int sizearray; /* size of `array' array */
224 lu_byte flags; /* 1<<p means tagmethod(p) is not present */ 224 lu_byte flags; /* 1<<p means tagmethod(p) is not present */
225 lu_byte lsizenode; /* log2 of size of `node' array */ 225 lu_byte lsizenode; /* log2 of size of `node' array */
226 lu_byte mode;
226} Table; 227} Table;
227 228
229/* bit masks for `mode' */
230#define WEAKKEY 1
231#define WEAKVALUE 2
228 232
229 233
230/* 234/*