lualib.h 886 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. ** $Id: lualib.h,v 1.19 2001/02/23 20:31:37 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. #ifndef LUALIB_API
  10. #define LUALIB_API extern
  11. #endif
  12. #define LUA_ALERT l_s("_ALERT")
  13. LUALIB_API int lua_baselibopen (lua_State *L);
  14. LUALIB_API int lua_iolibopen (lua_State *L);
  15. LUALIB_API int lua_strlibopen (lua_State *L);
  16. LUALIB_API int lua_mathlibopen (lua_State *L);
  17. LUALIB_API int lua_dblibopen (lua_State *L);
  18. /*
  19. ** `private' part
  20. */
  21. /* macro to `unsign' a character */
  22. #ifndef uchar
  23. #define uchar(c) ((unsigned char)(c))
  24. #endif
  25. /* integer type to hold the result of fgetc */
  26. typedef int l_charint;
  27. /* macro to control type of literal strings */
  28. #ifndef l_s
  29. #define l_s(x) x
  30. #endif
  31. /* macro to control type of literal chars */
  32. #ifndef l_c
  33. #define l_c(x) x
  34. #endif
  35. #endif