diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-06-17 15:19:17 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-06-17 15:19:17 -0300 |
| commit | 732ef82c72993cad6b5701a50be1c0753e5cc973 (patch) | |
| tree | efedcc4e75561ca56943f8705d6fc81b9c59a6c2 | |
| parent | 2a1da648722470998c52f5ac39d765e45acd3756 (diff) | |
| download | lua-github-732ef82c72993cad6b5701a50be1c0753e5cc973.tar.gz | |
"luaI_undump1" cannot be static; luac uses it.
| -rw-r--r-- | undump.c | 4 | ||||
| -rw-r--r-- | undump.h | 8 |
2 files changed, 9 insertions, 3 deletions
@@ -3,7 +3,7 @@ ** load bytecodes from files */ -char* rcs_undump="$Id: undump.c,v 1.24 1997/06/13 11:08:47 lhf Exp $"; +char* rcs_undump="$Id: undump.c,v 1.23 1997/06/16 16:50:22 roberto Exp roberto $"; #include <stdio.h> #include <string.h> @@ -301,7 +301,7 @@ static void LoadChunk(ZIO* Z) ** load one chunk from a file. ** return list of functions found, headed by main, or NULL at EOF. */ -static TFunc* luaI_undump1(ZIO* Z) +TFunc* luaI_undump1(ZIO* Z) { int c=zgetc(Z); if (c==ID_CHUNK) @@ -1,9 +1,12 @@ /* ** undump.h ** definitions for lua decompiler -** $Id: undump.h,v 1.4 1997/04/14 12:12:40 lhf Exp roberto $ +** $Id: undump.h,v 1.5 1997/06/16 16:50:22 roberto Exp roberto $ */ +#ifndef undump_h +#define undump_h + #include "func.h" #include "zio.h" @@ -21,4 +24,7 @@ #define TEST_FLOAT 0.123456789e-23 /* a float for testing representation */ +TFunc* luaI_undump1(ZIO* Z); int luaI_undump(ZIO* Z); /* load all chunks */ + +#endif |
