diff options
Diffstat (limited to 'lobject.c')
-rw-r--r-- | lobject.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: $ | 2 | ** $Id: lobject.c,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $ |
3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -66,3 +66,12 @@ int luaO_findstring (char *name, char *list[]) | |||
66 | return -1; /* name not found */ | 66 | return -1; /* name not found */ |
67 | } | 67 | } |
68 | 68 | ||
69 | |||
70 | void luaO_insertlist (GCnode *root, GCnode *node) | ||
71 | { | ||
72 | ++luaO_nentities; | ||
73 | node->next = root->next; | ||
74 | root->next = node; | ||
75 | node->marked = 0; | ||
76 | } | ||
77 | |||