diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-26 12:02:26 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-26 12:02:26 -0300 |
commit | a580480b07cdf7201306b246deeb2fe84f2c25a9 (patch) | |
tree | 30e9d4798228156eea5be2589834f1ff2db4355e /ldo.c | |
parent | 0dd6d1080e7f58eb17cb8a2ad3fc5801ed7c0532 (diff) | |
download | lua-a580480b07cdf7201306b246deeb2fe84f2c25a9.tar.gz lua-a580480b07cdf7201306b246deeb2fe84f2c25a9.tar.bz2 lua-a580480b07cdf7201306b246deeb2fe84f2c25a9.zip |
new implementation for globals: Global value is stored in TaggedString
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: $ | 2 | ** $Id: ldo.c,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -9,6 +9,7 @@ | |||
9 | #include <stdio.h> | 9 | #include <stdio.h> |
10 | #include <string.h> | 10 | #include <string.h> |
11 | 11 | ||
12 | #include "lbuiltin.h" | ||
12 | #include "ldo.h" | 13 | #include "ldo.h" |
13 | #include "lgc.h" | 14 | #include "lgc.h" |
14 | #include "lmem.h" | 15 | #include "lmem.h" |
@@ -50,6 +51,7 @@ static void initstack (int n) | |||
50 | luaD_stack.last = luaD_stack.stack+(maxstack-1); | 51 | luaD_stack.last = luaD_stack.stack+(maxstack-1); |
51 | luaD_stack.top = luaD_stack.stack; | 52 | luaD_stack.top = luaD_stack.stack; |
52 | *(luaD_stack.top++) = initial_stack; | 53 | *(luaD_stack.top++) = initial_stack; |
54 | luaB_predefine(); | ||
53 | } | 55 | } |
54 | 56 | ||
55 | 57 | ||