aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lauxlib.h')
-rw-r--r--lauxlib.h40
1 files changed, 21 insertions, 19 deletions
diff --git a/lauxlib.h b/lauxlib.h
index d94b9bae..2f159e23 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -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
24void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n); 24LUA_API void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n);
25void luaL_argerror (lua_State *L, int numarg, const char *extramsg); 25LUA_API void luaL_argerror (lua_State *L, int numarg, const char *extramsg);
26const char *luaL_check_lstr (lua_State *L, int numArg, size_t *len); 26LUA_API const char *luaL_check_lstr (lua_State *L, int numArg, size_t *len);
27const char *luaL_opt_lstr (lua_State *L, int numArg, const char *def, 27LUA_API const char *luaL_opt_lstr (lua_State *L, int numArg, const char *def,
28 size_t *len); 28 size_t *len);
29double luaL_check_number (lua_State *L, int numArg); 29LUA_API double luaL_check_number (lua_State *L, int numArg);
30double luaL_opt_number (lua_State *L, int numArg, double def); 30LUA_API double luaL_opt_number (lua_State *L, int numArg, double def);
31 31
32void luaL_checkstack (lua_State *L, int space, const char *msg); 32LUA_API void luaL_checkstack (lua_State *L, int space, const char *msg);
33void luaL_checktype (lua_State *L, int narg, int t); 33LUA_API void luaL_checktype (lua_State *L, int narg, int t);
34void luaL_checkany (lua_State *L, int narg); 34LUA_API void luaL_checkany (lua_State *L, int narg);
35 35
36void luaL_verror (lua_State *L, const char *fmt, ...); 36LUA_API void luaL_verror (lua_State *L, const char *fmt, ...);
37int luaL_findstring (const char *name, const char *const list[]); 37LUA_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
68typedef struct luaL_Buffer { 70typedef 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
81void luaL_buffinit (lua_State *L, luaL_Buffer *B); 83LUA_API void luaL_buffinit (lua_State *L, luaL_Buffer *B);
82char *luaL_prepbuffer (luaL_Buffer *B); 84LUA_API char *luaL_prepbuffer (luaL_Buffer *B);
83void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l); 85LUA_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l);
84void luaL_addstring (luaL_Buffer *B, const char *s); 86LUA_API void luaL_addstring (luaL_Buffer *B, const char *s);
85void luaL_addvalue (luaL_Buffer *B); 87LUA_API void luaL_addvalue (luaL_Buffer *B);
86void luaL_pushresult (luaL_Buffer *B); 88LUA_API void luaL_pushresult (luaL_Buffer *B);
87 89
88 90
89/* }====================================================== */ 91/* }====================================================== */