lundump.h 720 B

12345678910111213141516171819202122232425262728
  1. /*
  2. ** $Id: lundump.h,v 1.23 2001/06/28 13:55:17 lhf Exp lhf $
  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_endianness (void);
  14. /* definitions for headers of binary files */
  15. #define VERSION 0x41 /* last format change was in 4.1 */
  16. #define VERSION0 0x41 /* last major change was in 4.1 */
  17. #define LUA_SIGNATURE "\033Lua" /* binary files start with <esc>Lua */
  18. /* a multiple of PI for testing native format */
  19. /* multiplying by 1E8 gives non-trivial integer values */
  20. #define TEST_NUMBER 3.14159265358979323846E8
  21. #endif