summaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/lobject.h b/lobject.h
index 508ac7fe..90e5ff66 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 2.17 2005/06/13 14:19:00 roberto Exp roberto $ 2** $Id: lobject.h,v 2.18 2005/10/24 17:37:33 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*/
@@ -323,9 +323,12 @@ typedef union Closure {
323** Tables 323** Tables
324*/ 324*/
325 325
326typedef struct TKey { 326typedef union TKey {
327 TValuefields; 327 struct {
328 struct Node *next; /* for chaining */ 328 TValuefields;
329 struct Node *next; /* for chaining */
330 } nk;
331 TValue tvk;
329} TKey; 332} TKey;
330 333
331 334
@@ -360,8 +363,9 @@ typedef struct Table {
360#define sizenode(t) (twoto((t)->lsizenode)) 363#define sizenode(t) (twoto((t)->lsizenode))
361 364
362 365
366#define luaO_nilobject (&luaO_nilobject_)
363 367
364LUAI_DATA const TValue luaO_nilobject; 368LUAI_DATA const TValue luaO_nilobject_;
365 369
366#define ceillog2(x) (luaO_log2((x)-1) + 1) 370#define ceillog2(x) (luaO_log2((x)-1) + 1)
367 371