summaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-30 10:38:50 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-30 10:38:50 -0200
commitf379d06e24f22cb4d0afa3937c27ef35b73b00a6 (patch)
treee87e3def52e622040ec2724433e21daee8322ee3 /lua.h
parent728ff2070135b54c544b90020be268f53bf2d15a (diff)
downloadlua-f379d06e24f22cb4d0afa3937c27ef35b73b00a6.tar.gz
lua-f379d06e24f22cb4d0afa3937c27ef35b73b00a6.tar.bz2
lua-f379d06e24f22cb4d0afa3937c27ef35b73b00a6.zip
all API functions are declared in a single line (to facilitate pre-processing).
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/lua.h b/lua.h
index 599dfafd..7d18c4d3 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.76 2000/10/24 19:12:06 roberto Exp roberto $ 2** $Id: lua.h,v 1.77 2000/10/26 12:47:05 roberto Exp roberto $
3** Lua - An Extensible Extension Language 3** Lua - An Extensible Extension Language
4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil 4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
5** e-mail: lua@tecgraf.puc-rio.br 5** e-mail: lua@tecgraf.puc-rio.br
@@ -16,16 +16,18 @@
16#include <stddef.h> 16#include <stddef.h>
17 17
18 18
19/* mark for all API functions */
19#ifndef LUA_API 20#ifndef LUA_API
20#define LUA_API extern 21#define LUA_API extern
21#endif 22#endif
22 23
23 24
24#define LUA_VERSION "Lua 4.0 (beta)" 25#define LUA_VERSION "Lua 4.0"
25#define LUA_COPYRIGHT "Copyright (C) 1994-2000 TeCGraf, PUC-Rio" 26#define LUA_COPYRIGHT "Copyright (C) 1994-2000 TeCGraf, PUC-Rio"
26#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" 27#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo"
27 28
28 29
30/* name of global variable with error handler */
29#define LUA_ERRORMESSAGE "_ERRORMESSAGE" 31#define LUA_ERRORMESSAGE "_ERRORMESSAGE"
30 32
31 33
@@ -39,9 +41,11 @@
39#define LUA_NOTAG (-2) 41#define LUA_NOTAG (-2)
40 42
41 43
44/* option for multiple returns in lua_call */
42#define LUA_MULTRET (-1) 45#define LUA_MULTRET (-1)
43 46
44 47
48/* minimum stack avaiable for a C function */
45#define LUA_MINSTACK 20 49#define LUA_MINSTACK 20
46 50
47 51
@@ -131,9 +135,7 @@ LUA_API void lua_rawget (lua_State *L, int index);
131LUA_API void lua_rawgeti (lua_State *L, int index, int n); 135LUA_API void lua_rawgeti (lua_State *L, int index, int n);
132LUA_API void lua_getglobals (lua_State *L); 136LUA_API void lua_getglobals (lua_State *L);
133LUA_API void lua_gettagmethod (lua_State *L, int tag, const char *event); 137LUA_API void lua_gettagmethod (lua_State *L, int tag, const char *event);
134
135LUA_API int lua_getref (lua_State *L, int ref); 138LUA_API int lua_getref (lua_State *L, int ref);
136
137LUA_API void lua_newtable (lua_State *L); 139LUA_API void lua_newtable (lua_State *L);
138 140
139 141
@@ -156,8 +158,7 @@ LUA_API int lua_call (lua_State *L, int nargs, int nresults);
156LUA_API void lua_rawcall (lua_State *L, int nargs, int nresults); 158LUA_API void lua_rawcall (lua_State *L, int nargs, int nresults);
157LUA_API int lua_dofile (lua_State *L, const char *filename); 159LUA_API int lua_dofile (lua_State *L, const char *filename);
158LUA_API int lua_dostring (lua_State *L, const char *str); 160LUA_API int lua_dostring (lua_State *L, const char *str);
159LUA_API int lua_dobuffer (lua_State *L, const char *buff, size_t size, 161LUA_API int lua_dobuffer (lua_State *L, const char *buff, size_t size, const char *name);
160 const char *name);
161 162
162/* 163/*
163** Garbage-collection functions 164** Garbage-collection functions