lualib.h 998 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. ** $Id: lualib.h,v 1.7 1999/08/16 20:52:00 roberto Exp roberto $
  3. ** Lua standard libraries
  4. ** See Copyright Notice in lua.h
  5. */
  6. #ifndef lualib_h
  7. #define lualib_h
  8. #include "lua.h"
  9. void lua_iolibopen (lua_State *L);
  10. void lua_strlibopen (lua_State *L);
  11. void lua_mathlibopen (lua_State *L);
  12. void lua_dblibopen (lua_State *L);
  13. void lua_userinit (lua_State *L);
  14. /*
  15. ** ===============================================================
  16. ** Macros for single-state use
  17. ** ===============================================================
  18. */
  19. #ifndef LUA_REENTRANT
  20. #define lua_iolibopen() (lua_iolibopen)(lua_state)
  21. #define lua_strlibopen() (lua_strlibopen)(lua_state)
  22. #define lua_mathlibopen() (lua_mathlibopen)(lua_state)
  23. #define lua_dblibopen() (lua_dblibopen)(lua_state)
  24. #define lua_userinit() (lua_userinit)(lua_state)
  25. #endif
  26. /* Auxiliary functions (private) */
  27. const char *luaI_classend (lua_State *L, const char *p);
  28. int luaI_singlematch (int c, const char *p, const char *ep);
  29. #endif