Browse Source

small changes (preparing for new module of pre-compilation)

Roberto Ierusalimschy 29 years ago
parent
commit
30dd3a2dbc
2 changed files with 5 additions and 1 deletions
  1. 4 0
      func.c
  2. 1 1
      func.h

+ 4 - 0
func.c

@@ -19,8 +19,12 @@ static int maxcurrvars = 0;
 */
 void luaI_initTFunc (TFunc *f)
 {
+  f->next = NULL;
+  f->marked = 0;
+  f->size = 0;
   f->code = NULL;
   f->lineDefined = 0;
+  f->fileName = NULL;
   f->locvars = NULL;
 }
 

+ 1 - 1
func.h

@@ -17,7 +17,7 @@ typedef struct LocVar
 typedef struct TFunc
 {
   struct TFunc	*next;
-  char		marked;
+  int		marked;
   int		size;
   Byte		*code;
   int		lineDefined;