diff options
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 26 |
1 files changed, 15 insertions, 11 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.16 1999/12/03 11:26:23 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.17 1999/12/29 16:24:03 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 | */ |
@@ -9,6 +9,8 @@ | |||
9 | #define lauxlib_h | 9 | #define lauxlib_h |
10 | 10 | ||
11 | 11 | ||
12 | #include <stddef.h> | ||
13 | |||
12 | #include "lua.h" | 14 | #include "lua.h" |
13 | 15 | ||
14 | 16 | ||
@@ -20,26 +22,28 @@ struct luaL_reg { | |||
20 | 22 | ||
21 | void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n); | 23 | void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n); |
22 | void luaL_argerror (lua_State *L, int numarg, const char *extramsg); | 24 | void luaL_argerror (lua_State *L, int numarg, const char *extramsg); |
23 | const char *luaL_check_lstr (lua_State *L, int numArg, long *len); | 25 | const char *luaL_check_lstr (lua_State *L, int numArg, size_t *len); |
24 | const char *luaL_opt_lstr (lua_State *L, int numArg, const char *def, long *len); | 26 | const char *luaL_opt_lstr (lua_State *L, int numArg, const char *def, |
27 | size_t *len); | ||
25 | double luaL_check_number (lua_State *L, int numArg); | 28 | double luaL_check_number (lua_State *L, int numArg); |
26 | double luaL_opt_number (lua_State *L, int numArg, double def); | 29 | double luaL_opt_number (lua_State *L, int numArg, double def); |
27 | lua_Object luaL_functionarg (lua_State *L, int arg); | 30 | lua_Object luaL_functionarg (lua_State *L, int arg); |
28 | lua_Object luaL_tablearg (lua_State *L, int arg); | 31 | lua_Object luaL_tablearg (lua_State *L, int arg); |
29 | lua_Object luaL_nonnullarg (lua_State *L, int numArg); | 32 | lua_Object luaL_nonnullarg (lua_State *L, int numArg); |
30 | void luaL_verror (lua_State *L, const char *fmt, ...); | 33 | void luaL_verror (lua_State *L, const char *fmt, ...); |
31 | char *luaL_openspace (lua_State *L, int size); | ||
32 | void luaL_resetbuffer (lua_State *L); | ||
33 | void luaL_addchar (lua_State *L, int c); | ||
34 | int luaL_getsize (lua_State *L); | ||
35 | void luaL_addsize (lua_State *L, int n); | ||
36 | int luaL_newbuffer (lua_State *L, int size); | ||
37 | void luaL_oldbuffer (lua_State *L, int old); | ||
38 | char *luaL_buffer (lua_State *L); | ||
39 | int luaL_findstring (const char *name, const char *const list[]); | 34 | int luaL_findstring (const char *name, const char *const list[]); |
40 | void luaL_chunkid (char *out, const char *source, int len); | 35 | void luaL_chunkid (char *out, const char *source, int len); |
41 | void luaL_filesource (char *out, const char *filename, int len); | 36 | void luaL_filesource (char *out, const char *filename, int len); |
42 | 37 | ||
38 | char *luaL_openspace (lua_State *L, size_t size); | ||
39 | void luaL_resetbuffer (lua_State *L); | ||
40 | void luaL_addchar (lua_State *L, int c); | ||
41 | size_t luaL_getsize (lua_State *L); | ||
42 | void luaL_addsize (lua_State *L, size_t n); | ||
43 | size_t luaL_newbuffer (lua_State *L, size_t size); | ||
44 | void luaL_oldbuffer (lua_State *L, size_t old); | ||
45 | char *luaL_buffer (lua_State *L); | ||
46 | |||
43 | 47 | ||
44 | #ifdef LUA_REENTRANT | 48 | #ifdef LUA_REENTRANT |
45 | 49 | ||