lundump.h 965 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. ** $Id: lundump.h,v 1.28 2002/10/09 13:42:01 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; from lundump.c */
  11. Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer *buff);
  12. /* find byte order; from lundump.c */
  13. int luaU_endianness (void);
  14. /* dump one chunk; from dump.c */
  15. void luaU_dump (lua_State *L, const Proto* Main, lua_Chunkwriter w, void* data);
  16. /* print one chunk; from print.c */
  17. void luaU_print (const Proto* Main);
  18. /* definitions for headers of binary files */
  19. #define LUA_SIGNATURE "\033Lua" /* binary files start with <esc>Lua */
  20. #define VERSION 0x50 /* last format change was in 5.0 */
  21. #define VERSION0 0x50 /* last major change was in 5.0 */
  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