diff options
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.c,v 2.14 2009/04/17 14:40:13 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 2.15 2009/09/28 16:32:50 roberto Exp roberto $ |
3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -16,6 +16,7 @@ | |||
16 | #include "lgc.h" | 16 | #include "lgc.h" |
17 | #include "lmem.h" | 17 | #include "lmem.h" |
18 | #include "lobject.h" | 18 | #include "lobject.h" |
19 | #include "lopcodes.h" | ||
19 | #include "lstate.h" | 20 | #include "lstate.h" |
20 | 21 | ||
21 | 22 | ||
@@ -133,6 +134,7 @@ Proto *luaF_newproto (lua_State *L) { | |||
133 | f->linedefined = 0; | 134 | f->linedefined = 0; |
134 | f->lastlinedefined = 0; | 135 | f->lastlinedefined = 0; |
135 | f->source = NULL; | 136 | f->source = NULL; |
137 | f->envreg = NO_REG; | ||
136 | return f; | 138 | return f; |
137 | } | 139 | } |
138 | 140 | ||