lundump.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. ** $Id: lundump.h,v 1.34 2003/08/25 19:51:54 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. LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff,
  12. const char *name);
  13. /* find byte order; from lundump.c */
  14. LUAI_FUNC int luaU_endianness (void);
  15. /* dump one chunk; from ldump.c */
  16. LUAI_FUNC int luaU_dump (lua_State* L, const Proto* Main, lua_Chunkwriter w,
  17. void* data, int strip);
  18. /* print one chunk; from print.c */
  19. LUAI_FUNC void luaU_print (const Proto* Main);
  20. /* definitions for headers of binary files */
  21. #define VERSION 0x50 /* last format change was in 5.0 */
  22. #define VERSION0 0x50 /* last major change was in 5.0 */
  23. /* a multiple of PI for testing native format */
  24. /* multiplying by 1E7 gives non-trivial integer values */
  25. #define TEST_NUMBER ((lua_Number)3.14159265358979323846E7)
  26. #endif