undump.h 591 B

123456789101112131415161718192021222324
  1. /*
  2. ** undump.h
  3. ** definitions for lua decompiler
  4. ** $Id: undump.h,v 1.4 1997/04/14 12:12:40 lhf Exp roberto $
  5. */
  6. #include "func.h"
  7. #include "zio.h"
  8. #define IsMain(f) (f->lineDefined==0)
  9. /* definitions for chunk headers */
  10. #define ID_CHUNK 27 /* ESC */
  11. #define ID_FUN 'F'
  12. #define ID_VAR 'V'
  13. #define ID_STR 'S'
  14. #define SIGNATURE "Lua"
  15. #define VERSION 0x25 /* last format change was in 2.5 */
  16. #define TEST_WORD 0x1234 /* a word for testing byte ordering */
  17. #define TEST_FLOAT 0.123456789e-23 /* a float for testing representation */
  18. int luaI_undump(ZIO* Z); /* load all chunks */