aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/lua.h b/lua.h
index 6941e8ae..ea61f0c3 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.166 2002/11/25 17:47:13 roberto Exp roberto $ 2** $Id: lua.h,v 1.167 2002/11/25 17:50:14 roberto Exp roberto $
3** Lua - An Extensible Extension Language 3** Lua - An Extensible Extension Language
4** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil 4** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil
5** http://www.lua.org mailto:info@lua.org 5** http://www.lua.org mailto:info@lua.org
@@ -10,18 +10,13 @@
10#ifndef lua_h 10#ifndef lua_h
11#define lua_h 11#define lua_h
12 12
13
14/* definition of `va_list' */
15#include <stdarg.h> 13#include <stdarg.h>
16
17/* definition of `size_t' */
18#include <stddef.h> 14#include <stddef.h>
19 15
20 16
21 17#define LUA_VERSION "Lua 5.0 (beta)"
22#define LUA_VERSION "Lua 5.0 (alpha)"
23#define LUA_COPYRIGHT "Copyright (C) 1994-2002 Tecgraf, PUC-Rio" 18#define LUA_COPYRIGHT "Copyright (C) 1994-2002 Tecgraf, PUC-Rio"
24#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" 19#define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo & W. Celes"
25 20
26 21
27 22
@@ -43,7 +38,6 @@
43#define LUA_ERRSYNTAX 3 38#define LUA_ERRSYNTAX 3
44#define LUA_ERRMEM 4 39#define LUA_ERRMEM 4
45#define LUA_ERRERR 5 40#define LUA_ERRERR 5
46#define LUA_ERRTHROW 6
47 41
48 42
49typedef struct lua_State lua_State; 43typedef struct lua_State lua_State;
@@ -88,7 +82,7 @@ typedef int (*lua_Chunkwriter) (lua_State *L, const void* p,
88#endif 82#endif
89 83
90 84
91/* type of Numbers in Lua */ 85/* type of numbers in Lua */
92#ifndef LUA_NUMBER 86#ifndef LUA_NUMBER
93typedef double lua_Number; 87typedef double lua_Number;
94#else 88#else
@@ -205,7 +199,7 @@ LUA_API int lua_yield (lua_State *L, int nresults);
205LUA_API int lua_resume (lua_State *L, int narg); 199LUA_API int lua_resume (lua_State *L, int narg);
206 200
207/* 201/*
208** Garbage-collection functions 202** garbage-collection functions
209*/ 203*/
210LUA_API int lua_getgcthreshold (lua_State *L); 204LUA_API int lua_getgcthreshold (lua_State *L);
211LUA_API int lua_getgccount (lua_State *L); 205LUA_API int lua_getgccount (lua_State *L);
@@ -274,8 +268,6 @@ LUA_API int lua_pushupvalues (lua_State *L);
274#define lua_getglobal(L,s) \ 268#define lua_getglobal(L,s) \
275 (lua_pushstring(L, s), lua_gettable(L, LUA_GLOBALSINDEX)) 269 (lua_pushstring(L, s), lua_gettable(L, LUA_GLOBALSINDEX))
276 270
277#define lua_isnull lua_isnone
278
279 271
280/* compatibility with ref system */ 272/* compatibility with ref system */
281 273