lundump.h 879 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. ** $Id: lundump.h,v 1.20 2001/02/23 17:17:25 roberto Exp roberto $
  3. ** load pre-compiled Lua chunks
  4. ** See Copyright Notice in lua.h
  5. */
  6. #ifndef lundump_h
  7. #define lundump_h
  8. #include "lobject.h"
  9. #include "lzio.h"
  10. /* load one chunk */
  11. Proto* luaU_undump (lua_State* L, ZIO* Z);
  12. /* find byte order */
  13. int luaU_endianess (void);
  14. /* definitions for headers of binary files */
  15. #define VERSION 0x40 /* last format change was in 4.0 */
  16. #define VERSION0 0x40 /* last major change was in 4.0 */
  17. #define ID_CHUNK 27 /* binary files start with ESC... */
  18. #define SIGNATURE "Lua" /* ...followed by this signature */
  19. /* formats for error messages */
  20. #define SOURCE tf->lineDefined,tf->source->str
  21. #define IN tf,SOURCE
  22. /* a multiple of PI for testing native format */
  23. /* multiplying by 1E8 gives non-trivial integer values */
  24. #define TEST_NUMBER 3.14159265358979323846E8
  25. #endif