mirror of https://github.com/rusefi/lua.git
unused field "size" in struct TFunc.
This commit is contained in:
parent
0600f968c3
commit
16dd77e8d9
1
func.c
1
func.c
|
@ -21,7 +21,6 @@ void luaI_initTFunc (TFunc *f)
|
|||
{
|
||||
f->next = NULL;
|
||||
f->marked = 0;
|
||||
f->size = 0;
|
||||
f->code = NULL;
|
||||
f->lineDefined = 0;
|
||||
f->fileName = lua_parsedfile;
|
||||
|
|
3
func.h
3
func.h
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: func.h,v 1.8 1996/03/14 15:54:20 roberto Exp roberto $
|
||||
** $Id: func.h,v 1.9 1997/05/14 18:38:29 roberto Exp roberto $
|
||||
*/
|
||||
|
||||
#ifndef func_h
|
||||
|
@ -23,7 +23,6 @@ typedef struct TFunc
|
|||
{
|
||||
struct TFunc *next;
|
||||
int marked;
|
||||
int size;
|
||||
Byte *code;
|
||||
int lineDefined;
|
||||
char *fileName;
|
||||
|
|
9
undump.c
9
undump.c
|
@ -3,7 +3,7 @@
|
|||
** load bytecodes from files
|
||||
*/
|
||||
|
||||
char* rcs_undump="$Id: undump.c,v 1.23 1997/06/16 16:50:22 roberto Exp roberto $";
|
||||
char* rcs_undump="$Id: undump.c,v 1.24 1997/06/17 18:19:17 roberto Exp roberto $";
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -192,10 +192,11 @@ static char* LoadNewString(ZIO* Z)
|
|||
|
||||
static void LoadFunction(ZIO* Z)
|
||||
{
|
||||
int size;
|
||||
TFunc* tf=new(TFunc);
|
||||
tf->next=NULL;
|
||||
tf->locvars=NULL;
|
||||
tf->size=LoadSize(Z);
|
||||
size=LoadSize(Z);
|
||||
tf->lineDefined=LoadWord(Z);
|
||||
if (IsMain(tf)) /* new main */
|
||||
{
|
||||
|
@ -209,8 +210,8 @@ static void LoadFunction(ZIO* Z)
|
|||
memcpy(Main->code+tf->marked,&tf,sizeof(tf));
|
||||
lastF=lastF->next=tf;
|
||||
}
|
||||
tf->code=LoadBlock(tf->size,Z);
|
||||
if (swapword || swapfloat) FixCode(tf->code,tf->code+tf->size);
|
||||
tf->code=LoadBlock(size,Z);
|
||||
if (swapword || swapfloat) FixCode(tf->code,tf->code+size);
|
||||
while (1) /* unthread */
|
||||
{
|
||||
int c=zgetc(Z);
|
||||
|
|
Loading…
Reference in New Issue