diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-06 13:54:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-06 13:54:42 -0300 |
commit | 88a2023c3285c4514519158fba90e644fc6ffca3 (patch) | |
tree | da6611257545c486ff856dd48d66d94e056f3d66 /lua.h | |
parent | 5ef1989c4b05aff8362a7ea6ba62aad76d4a040d (diff) | |
download | lua-88a2023c3285c4514519158fba90e644fc6ffca3.tar.gz lua-88a2023c3285c4514519158fba90e644fc6ffca3.tar.bz2 lua-88a2023c3285c4514519158fba90e644fc6ffca3.zip |
support for strings with '\0'
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.14 1998/01/07 16:26:48 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.15 1998/02/12 19:23:32 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 |
@@ -90,12 +90,14 @@ int lua_isfunction (lua_Object object); | |||
90 | 90 | ||
91 | double lua_getnumber (lua_Object object); | 91 | double lua_getnumber (lua_Object object); |
92 | char *lua_getstring (lua_Object object); | 92 | char *lua_getstring (lua_Object object); |
93 | long lua_getstrlen (lua_Object object); | ||
93 | lua_CFunction lua_getcfunction (lua_Object object); | 94 | lua_CFunction lua_getcfunction (lua_Object object); |
94 | void *lua_getuserdata (lua_Object object); | 95 | void *lua_getuserdata (lua_Object object); |
95 | 96 | ||
96 | 97 | ||
97 | void lua_pushnil (void); | 98 | void lua_pushnil (void); |
98 | void lua_pushnumber (double n); | 99 | void lua_pushnumber (double n); |
100 | void lua_pushlstr (char *s, long len); | ||
99 | void lua_pushstring (char *s); | 101 | void lua_pushstring (char *s); |
100 | void lua_pushCclosure (lua_CFunction fn, int n); | 102 | void lua_pushCclosure (lua_CFunction fn, int n); |
101 | void lua_pushusertag (void *u, int tag); | 103 | void lua_pushusertag (void *u, int tag); |