undump.h 667 B

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