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