undump.h 596 B

1234567891011121314151617181920212223
  1. /*
  2. ** undump.h
  3. ** definitions for lua decompiler
  4. ** $Id: undump.h,v 1.2 1996/03/11 21:59:41 lhf Exp lhf $
  5. */
  6. #include "func.h"
  7. #define IsMain(f) (f->lineDefined==0)
  8. /* definitions for chunk headers */
  9. #define ID_CHUNK 27 /* ESC */
  10. #define ID_FUN 'F'
  11. #define ID_VAR 'V'
  12. #define ID_STR 'S'
  13. #define SIGNATURE "Lua"
  14. #define VERSION 0x25 /* 2.5 */
  15. #define TEST_WORD 0x1234 /* a word for testing byte ordering */
  16. #define TEST_FLOAT 0.123456789e-23 /* a float for testing representation */
  17. TFunc* luaI_undump1(FILE* D); /* load one chunk */
  18. int luaI_undump(FILE* D); /* load all chunks */