aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-08-16 17:52:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-08-16 17:52:00 -0300
commitc787dccd9b5c3e55547a2c4bb598c0276de65034 (patch)
treec4cdf2f7319fee48e048472a2044119f541e8da2 /lua.h
parentb44e35b773bcaa9891d80a117392911ab5f656e5 (diff)
downloadlua-c787dccd9b5c3e55547a2c4bb598c0276de65034.tar.gz
lua-c787dccd9b5c3e55547a2c4bb598c0276de65034.tar.bz2
lua-c787dccd9b5c3e55547a2c4bb598c0276de65034.zip
"const" !!!
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h35
1 files changed, 19 insertions, 16 deletions
diff --git a/lua.h b/lua.h
index ddba13fa..2f0f2b4c 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.32 1999/05/11 20:29:19 roberto Exp roberto $ 2** $Id: lua.h,v 1.33 1999/08/11 17:00:59 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
@@ -33,18 +33,21 @@ void lua_open (void);
33void lua_close (void); 33void lua_close (void);
34lua_State *lua_setstate (lua_State *st); 34lua_State *lua_setstate (lua_State *st);
35 35
36lua_Object lua_settagmethod (int tag, char *event); /* In: new method */ 36lua_Object lua_settagmethod (int tag, const char *event);
37lua_Object lua_gettagmethod (int tag, char *event); 37 /* In: new method */
38lua_Object lua_gettagmethod (int tag, const char *event);
38 39
39int lua_newtag (void); 40int lua_newtag (void);
40int lua_copytagmethods (int tagto, int tagfrom); 41int lua_copytagmethods (int tagto, int tagfrom);
41void lua_settag (int tag); /* In: object */ 42void lua_settag (int tag); /* In: object */
42 43
43void lua_error (char *s); 44void lua_error (const char *s);
44int lua_dofile (char *filename); /* Out: returns */ 45int lua_dofile (const char *filename);
45int lua_dostring (char *string); /* Out: returns */ 46 /* Out: returns */
46int lua_dobuffer (char *buff, int size, char *name); 47int lua_dostring (const char *string);
47 /* Out: returns */ 48 /* Out: returns */
49int lua_dobuffer (const char *buff, int size,
50 const char *name); /* Out: returns */
48int lua_callfunction (lua_Object f); 51int lua_callfunction (lua_Object f);
49 /* In: parameters; Out: returns */ 52 /* In: parameters; Out: returns */
50 53
@@ -64,7 +67,7 @@ int lua_isstring (lua_Object object);
64int lua_isfunction (lua_Object object); 67int lua_isfunction (lua_Object object);
65 68
66double lua_getnumber (lua_Object object); 69double lua_getnumber (lua_Object object);
67char *lua_getstring (lua_Object object); 70const char *lua_getstring (lua_Object object);
68long lua_strlen (lua_Object object); 71long lua_strlen (lua_Object object);
69lua_CFunction lua_getcfunction (lua_Object object); 72lua_CFunction lua_getcfunction (lua_Object object);
70void *lua_getuserdata (lua_Object object); 73void *lua_getuserdata (lua_Object object);
@@ -72,18 +75,18 @@ void *lua_getuserdata (lua_Object object);
72 75
73void lua_pushnil (void); 76void lua_pushnil (void);
74void lua_pushnumber (double n); 77void lua_pushnumber (double n);
75void lua_pushlstring (char *s, long len); 78void lua_pushlstring (const char *s, long len);
76void lua_pushstring (char *s); 79void lua_pushstring (const char *s);
77void lua_pushcclosure (lua_CFunction fn, int n); 80void lua_pushcclosure (lua_CFunction fn, int n);
78void lua_pushusertag (void *u, int tag); 81void lua_pushusertag (void *u, int tag);
79void lua_pushobject (lua_Object object); 82void lua_pushobject (lua_Object object);
80 83
81lua_Object lua_pop (void); 84lua_Object lua_pop (void);
82 85
83lua_Object lua_getglobal (char *name); 86lua_Object lua_getglobal (const char *name);
84lua_Object lua_rawgetglobal (char *name); 87lua_Object lua_rawgetglobal (const char *name);
85void lua_setglobal (char *name); /* In: value */ 88void lua_setglobal (const char *name); /* In: value */
86void lua_rawsetglobal (char *name); /* In: value */ 89void lua_rawsetglobal (const char *name); /* In: value */
87 90
88void lua_settable (void); /* In: table, index, value */ 91void lua_settable (void); /* In: table, index, value */
89void lua_rawsettable (void); /* In: table, index, value */ 92void lua_rawsettable (void); /* In: table, index, value */
@@ -92,7 +95,7 @@ lua_Object lua_rawgettable (void); /* In: table, index */
92 95
93int lua_tag (lua_Object object); 96int lua_tag (lua_Object object);
94 97
95char *lua_nextvar (char *varname); /* Out: value */ 98const char *lua_nextvar (const char *varname); /* Out: value */
96int lua_next (lua_Object o, int i); 99int lua_next (lua_Object o, int i);
97 /* Out: ref, value */ 100 /* Out: ref, value */
98 101