mirror of https://github.com/lua/lua.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
667 B
30 lines
667 B
/*
|
|
** undump.h
|
|
** definitions for lua decompiler
|
|
** $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"
|
|
|
|
#define IsMain(f) (f->lineDefined==0)
|
|
|
|
/* definitions for chunk headers */
|
|
|
|
#define ID_CHUNK 27 /* ESC */
|
|
#define ID_FUN 'F'
|
|
#define ID_VAR 'V'
|
|
#define ID_STR 'S'
|
|
#define SIGNATURE "Lua"
|
|
#define VERSION 0x25 /* last format change was in 2.5 */
|
|
#define TEST_WORD 0x1234 /* a word for testing byte ordering */
|
|
#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
|
|
|