summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-07-29 16:44:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-07-29 16:44:02 -0300
commit16dd77e8d95ac6d95a88cdc7b82ffad933aa4325 (patch)
tree8cad48450ec559d3139a2fad064f3cc54182d397
parent0600f968c3da21172086be04679be34fe3fb8fd1 (diff)
downloadlua-16dd77e8d95ac6d95a88cdc7b82ffad933aa4325.tar.gz
lua-16dd77e8d95ac6d95a88cdc7b82ffad933aa4325.tar.bz2
lua-16dd77e8d95ac6d95a88cdc7b82ffad933aa4325.zip
unused field "size" in struct TFunc.
-rw-r--r--func.c1
-rw-r--r--func.h3
-rw-r--r--undump.c9
3 files changed, 6 insertions, 7 deletions
diff --git a/func.c b/func.c
index 36f7e19f..b0792a65 100644
--- a/func.c
+++ b/func.c
@@ -21,7 +21,6 @@ void luaI_initTFunc (TFunc *f)
21{ 21{
22 f->next = NULL; 22 f->next = NULL;
23 f->marked = 0; 23 f->marked = 0;
24 f->size = 0;
25 f->code = NULL; 24 f->code = NULL;
26 f->lineDefined = 0; 25 f->lineDefined = 0;
27 f->fileName = lua_parsedfile; 26 f->fileName = lua_parsedfile;
diff --git a/func.h b/func.h
index 97185b9e..240baeb4 100644
--- a/func.h
+++ b/func.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: func.h,v 1.8 1996/03/14 15:54:20 roberto Exp roberto $ 2** $Id: func.h,v 1.9 1997/05/14 18:38:29 roberto Exp roberto $
3*/ 3*/
4 4
5#ifndef func_h 5#ifndef func_h
@@ -23,7 +23,6 @@ typedef struct TFunc
23{ 23{
24 struct TFunc *next; 24 struct TFunc *next;
25 int marked; 25 int marked;
26 int size;
27 Byte *code; 26 Byte *code;
28 int lineDefined; 27 int lineDefined;
29 char *fileName; 28 char *fileName;
diff --git a/undump.c b/undump.c
index 7088dc8d..0d1ca1a4 100644
--- a/undump.c
+++ b/undump.c
@@ -3,7 +3,7 @@
3** load bytecodes from files 3** load bytecodes from files
4*/ 4*/
5 5
6char* rcs_undump="$Id: undump.c,v 1.23 1997/06/16 16:50:22 roberto Exp roberto $"; 6char* rcs_undump="$Id: undump.c,v 1.24 1997/06/17 18:19:17 roberto Exp roberto $";
7 7
8#include <stdio.h> 8#include <stdio.h>
9#include <string.h> 9#include <string.h>
@@ -192,10 +192,11 @@ static char* LoadNewString(ZIO* Z)
192 192
193static void LoadFunction(ZIO* Z) 193static void LoadFunction(ZIO* Z)
194{ 194{
195 int size;
195 TFunc* tf=new(TFunc); 196 TFunc* tf=new(TFunc);
196 tf->next=NULL; 197 tf->next=NULL;
197 tf->locvars=NULL; 198 tf->locvars=NULL;
198 tf->size=LoadSize(Z); 199 size=LoadSize(Z);
199 tf->lineDefined=LoadWord(Z); 200 tf->lineDefined=LoadWord(Z);
200 if (IsMain(tf)) /* new main */ 201 if (IsMain(tf)) /* new main */
201 { 202 {
@@ -209,8 +210,8 @@ static void LoadFunction(ZIO* Z)
209 memcpy(Main->code+tf->marked,&tf,sizeof(tf)); 210 memcpy(Main->code+tf->marked,&tf,sizeof(tf));
210 lastF=lastF->next=tf; 211 lastF=lastF->next=tf;
211 } 212 }
212 tf->code=LoadBlock(tf->size,Z); 213 tf->code=LoadBlock(size,Z);
213 if (swapword || swapfloat) FixCode(tf->code,tf->code+tf->size); 214 if (swapword || swapfloat) FixCode(tf->code,tf->code+size);
214 while (1) /* unthread */ 215 while (1) /* unthread */
215 { 216 {
216 int c=zgetc(Z); 217 int c=zgetc(Z);