diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-07 14:36:56 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-07 14:36:56 -0300 |
| commit | dea6b6da9422f34ad91c8f6ad9ad3ed650e95713 (patch) | |
| tree | 3016b2fbcd67d75c71ee1b190aff2c24ada9b168 /lua.h | |
| parent | 71144e3ff0cb81bd9b8bb56d94dc76074c638c64 (diff) | |
| download | lua-dea6b6da9422f34ad91c8f6ad9ad3ed650e95713.tar.gz lua-dea6b6da9422f34ad91c8f6ad9ad3ed650e95713.tar.bz2 lua-dea6b6da9422f34ad91c8f6ad9ad3ed650e95713.zip | |
new function `lua_vpushstr' to replace uses of `sprintf'
Diffstat (limited to 'lua.h')
| -rw-r--r-- | lua.h | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.130 2002/05/01 20:48:12 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.131 2002/05/06 19:05:10 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: info@lua.org | 5 | ** e-mail: info@lua.org |
| @@ -12,6 +12,9 @@ | |||
| 12 | #define lua_h | 12 | #define lua_h |
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | /* definition of `va_list' */ | ||
| 16 | #include <stdarg.h> | ||
| 17 | |||
| 15 | /* definition of `size_t' */ | 18 | /* definition of `size_t' */ |
| 16 | #include <stddef.h> | 19 | #include <stddef.h> |
| 17 | 20 | ||
| @@ -141,6 +144,7 @@ LUA_API void lua_pushnil (lua_State *L); | |||
| 141 | LUA_API void lua_pushnumber (lua_State *L, lua_Number n); | 144 | LUA_API void lua_pushnumber (lua_State *L, lua_Number n); |
| 142 | LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t len); | 145 | LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t len); |
| 143 | LUA_API void lua_pushstring (lua_State *L, const char *s); | 146 | LUA_API void lua_pushstring (lua_State *L, const char *s); |
| 147 | LUA_API void lua_vpushstr (lua_State *L, const char *fmt, va_list argp); | ||
| 144 | LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n); | 148 | LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n); |
| 145 | LUA_API void lua_pushboolean (lua_State *L, int b); | 149 | LUA_API void lua_pushboolean (lua_State *L, int b); |
| 146 | LUA_API void lua_pushudataval (lua_State *L, void *p); | 150 | LUA_API void lua_pushudataval (lua_State *L, void *p); |
