diff options
| -rw-r--r-- | undump.c | 4 | ||||
| -rw-r--r-- | undump.h | 8 |
2 files changed, 9 insertions, 3 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** load bytecodes from files | 3 | ** load bytecodes from files |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char* rcs_undump="$Id: undump.c,v 1.24 1997/06/13 11:08:47 lhf Exp $"; | 6 | char* rcs_undump="$Id: undump.c,v 1.23 1997/06/16 16:50:22 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | #include <stdio.h> | 8 | #include <stdio.h> |
| 9 | #include <string.h> | 9 | #include <string.h> |
| @@ -301,7 +301,7 @@ static void LoadChunk(ZIO* Z) | |||
| 301 | ** load one chunk from a file. | 301 | ** load one chunk from a file. |
| 302 | ** return list of functions found, headed by main, or NULL at EOF. | 302 | ** return list of functions found, headed by main, or NULL at EOF. |
| 303 | */ | 303 | */ |
| 304 | static TFunc* luaI_undump1(ZIO* Z) | 304 | TFunc* luaI_undump1(ZIO* Z) |
| 305 | { | 305 | { |
| 306 | int c=zgetc(Z); | 306 | int c=zgetc(Z); |
| 307 | if (c==ID_CHUNK) | 307 | if (c==ID_CHUNK) |
| @@ -1,9 +1,12 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** undump.h | 2 | ** undump.h |
| 3 | ** definitions for lua decompiler | 3 | ** definitions for lua decompiler |
| 4 | ** $Id: undump.h,v 1.4 1997/04/14 12:12:40 lhf Exp roberto $ | 4 | ** $Id: undump.h,v 1.5 1997/06/16 16:50:22 roberto Exp roberto $ |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #ifndef undump_h | ||
| 8 | #define undump_h | ||
| 9 | |||
| 7 | #include "func.h" | 10 | #include "func.h" |
| 8 | #include "zio.h" | 11 | #include "zio.h" |
| 9 | 12 | ||
| @@ -21,4 +24,7 @@ | |||
| 21 | #define TEST_FLOAT 0.123456789e-23 /* a float for testing representation */ | 24 | #define TEST_FLOAT 0.123456789e-23 /* a float for testing representation */ |
| 22 | 25 | ||
| 23 | 26 | ||
| 27 | TFunc* luaI_undump1(ZIO* Z); | ||
| 24 | int luaI_undump(ZIO* Z); /* load all chunks */ | 28 | int luaI_undump(ZIO* Z); /* load all chunks */ |
| 29 | |||
| 30 | #endif | ||
