aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-04-01 16:02:43 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-04-01 16:02:43 -0300
commit59744f03112d4d0a3b589d99c780c24186e277fc (patch)
treefde44ed71f6eb111d677fc7f929acd2ed5088929 /lua.h
parentbb2e2bec18a322c27066c5898a239129cee46ec9 (diff)
downloadlua-59744f03112d4d0a3b589d99c780c24186e277fc.tar.gz
lua-59744f03112d4d0a3b589d99c780c24186e277fc.tar.bz2
lua-59744f03112d4d0a3b589d99c780c24186e277fc.zip
"storeglobal" changed to "setglobal"
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/lua.h b/lua.h
index 57830a05..34414ca4 100644
--- a/lua.h
+++ b/lua.h
@@ -2,15 +2,15 @@
2** LUA - Linguagem para Usuarios de Aplicacao 2** LUA - Linguagem para Usuarios de Aplicacao
3** Grupo de Tecnologia em Computacao Grafica 3** Grupo de Tecnologia em Computacao Grafica
4** TeCGraf - PUC-Rio 4** TeCGraf - PUC-Rio
5** $Id: lua.h,v 3.37 1997/03/19 19:41:10 roberto Exp roberto $ 5** $Id: lua.h,v 3.38 1997/03/31 20:59:09 roberto Exp roberto $
6*/ 6*/
7 7
8 8
9#ifndef lua_h 9#ifndef lua_h
10#define lua_h 10#define lua_h
11 11
12#define LUA_VERSION "Lua 2.?" 12#define LUA_VERSION "Lua 3.0 (alpha)"
13#define LUA_COPYRIGHT "Copyright (C) 1994-1996 TeCGraf" 13#define LUA_COPYRIGHT "Copyright (C) 1994-1997 TeCGraf"
14#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" 14#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo"
15 15
16 16
@@ -65,8 +65,8 @@ void lua_pushobject (lua_Object object);
65 65
66lua_Object lua_getglobal (char *name); 66lua_Object lua_getglobal (char *name);
67lua_Object lua_basicgetglobal (char *name); 67lua_Object lua_basicgetglobal (char *name);
68void lua_storeglobal (char *name); /* In: value */ 68void lua_setglobal (char *name); /* In: value */
69void lua_basicstoreglobal (char *name); /* In: value */ 69void lua_basicsetglobal (char *name); /* In: value */
70 70
71void lua_storesubscript (void); /* In: table, index, value */ 71void lua_storesubscript (void); /* In: table, index, value */
72void lua_basicstoreindex (void); /* In: table, index, value */ 72void lua_basicstoreindex (void); /* In: table, index, value */
@@ -97,6 +97,7 @@ lua_Object lua_createtable (void);
97/* =============================================================== */ 97/* =============================================================== */
98/* for compatibility with old versions. Avoid using these macros */ 98/* for compatibility with old versions. Avoid using these macros */
99 99
100#define lua_storeglobal(n) lua_setglobal(n)
100#define lua_type(o) (lua_tag(o)) 101#define lua_type(o) (lua_tag(o))
101 102
102#define lua_getuserdata(o) (*(void **)lua_getbinarydata(o)) 103#define lua_getuserdata(o) (*(void **)lua_getbinarydata(o))