summaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lobject.h b/lobject.h
index 259bdac5..2c0a5d26 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 2.7 2004/11/01 15:06:50 roberto Exp roberto $ 2** $Id: lobject.h,v 2.8 2004/12/04 18:10:22 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*/
@@ -330,7 +330,7 @@ typedef struct Table {
330 struct Table *metatable; 330 struct Table *metatable;
331 TValue *array; /* array part */ 331 TValue *array; /* array part */
332 Node *node; 332 Node *node;
333 Node *firstfree; /* this position is free; all positions after it are full */ 333 Node *lastfree; /* any free position is before this position */
334 GCObject *gclist; 334 GCObject *gclist;
335 int sizearray; /* size of `array' array */ 335 int sizearray; /* size of `array' array */
336} Table; 336} Table;
@@ -351,6 +351,8 @@ typedef struct Table {
351 351
352extern const TValue luaO_nilobject; 352extern const TValue luaO_nilobject;
353 353
354#define ceillog2(x) (luaO_log2((x)-1) + 1)
355
354int luaO_log2 (unsigned int x); 356int luaO_log2 (unsigned int x);
355int luaO_int2fb (unsigned int x); 357int luaO_int2fb (unsigned int x);
356int luaO_fb2int (int x); 358int luaO_fb2int (int x);