diff options
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 40 |
1 files changed, 21 insertions, 19 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.26 2000/10/02 20:10:55 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.27 2000/10/05 12:14:08 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -21,20 +21,20 @@ struct luaL_reg { | |||
21 | }; | 21 | }; |
22 | 22 | ||
23 | 23 | ||
24 | void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n); | 24 | LUA_API void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n); |
25 | void luaL_argerror (lua_State *L, int numarg, const char *extramsg); | 25 | LUA_API void luaL_argerror (lua_State *L, int numarg, const char *extramsg); |
26 | const char *luaL_check_lstr (lua_State *L, int numArg, size_t *len); | 26 | LUA_API const char *luaL_check_lstr (lua_State *L, int numArg, size_t *len); |
27 | const char *luaL_opt_lstr (lua_State *L, int numArg, const char *def, | 27 | LUA_API const char *luaL_opt_lstr (lua_State *L, int numArg, const char *def, |
28 | size_t *len); | 28 | size_t *len); |
29 | double luaL_check_number (lua_State *L, int numArg); | 29 | LUA_API double luaL_check_number (lua_State *L, int numArg); |
30 | double luaL_opt_number (lua_State *L, int numArg, double def); | 30 | LUA_API double luaL_opt_number (lua_State *L, int numArg, double def); |
31 | 31 | ||
32 | void luaL_checkstack (lua_State *L, int space, const char *msg); | 32 | LUA_API void luaL_checkstack (lua_State *L, int space, const char *msg); |
33 | void luaL_checktype (lua_State *L, int narg, int t); | 33 | LUA_API void luaL_checktype (lua_State *L, int narg, int t); |
34 | void luaL_checkany (lua_State *L, int narg); | 34 | LUA_API void luaL_checkany (lua_State *L, int narg); |
35 | 35 | ||
36 | void luaL_verror (lua_State *L, const char *fmt, ...); | 36 | LUA_API void luaL_verror (lua_State *L, const char *fmt, ...); |
37 | int luaL_findstring (const char *name, const char *const list[]); | 37 | LUA_API int luaL_findstring (const char *name, const char *const list[]); |
38 | 38 | ||
39 | 39 | ||
40 | 40 | ||
@@ -62,7 +62,9 @@ int luaL_findstring (const char *name, const char *const list[]); | |||
62 | */ | 62 | */ |
63 | 63 | ||
64 | 64 | ||
65 | #ifndef LUAL_BUFFERSIZE | ||
65 | #define LUAL_BUFFERSIZE BUFSIZ | 66 | #define LUAL_BUFFERSIZE BUFSIZ |
67 | #endif | ||
66 | 68 | ||
67 | 69 | ||
68 | typedef struct luaL_Buffer { | 70 | typedef struct luaL_Buffer { |
@@ -78,12 +80,12 @@ typedef struct luaL_Buffer { | |||
78 | 80 | ||
79 | #define luaL_addsize(B,n) ((B)->p += (n)) | 81 | #define luaL_addsize(B,n) ((B)->p += (n)) |
80 | 82 | ||
81 | void luaL_buffinit (lua_State *L, luaL_Buffer *B); | 83 | LUA_API void luaL_buffinit (lua_State *L, luaL_Buffer *B); |
82 | char *luaL_prepbuffer (luaL_Buffer *B); | 84 | LUA_API char *luaL_prepbuffer (luaL_Buffer *B); |
83 | void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l); | 85 | LUA_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l); |
84 | void luaL_addstring (luaL_Buffer *B, const char *s); | 86 | LUA_API void luaL_addstring (luaL_Buffer *B, const char *s); |
85 | void luaL_addvalue (luaL_Buffer *B); | 87 | LUA_API void luaL_addvalue (luaL_Buffer *B); |
86 | void luaL_pushresult (luaL_Buffer *B); | 88 | LUA_API void luaL_pushresult (luaL_Buffer *B); |
87 | 89 | ||
88 | 90 | ||
89 | /* }====================================================== */ | 91 | /* }====================================================== */ |