From dea6b6da9422f34ad91c8f6ad9ad3ed650e95713 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 7 May 2002 14:36:56 -0300 Subject: new function `lua_vpushstr' to replace uses of `sprintf' --- lua.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lua.h') diff --git a/lua.h b/lua.h index 47f50f1f..ba2069e7 100644 --- a/lua.h +++ b/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.130 2002/05/01 20:48:12 roberto Exp roberto $ +** $Id: lua.h,v 1.131 2002/05/06 19:05:10 roberto Exp roberto $ ** Lua - An Extensible Extension Language ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil ** e-mail: info@lua.org @@ -12,6 +12,9 @@ #define lua_h +/* definition of `va_list' */ +#include + /* definition of `size_t' */ #include @@ -141,6 +144,7 @@ LUA_API void lua_pushnil (lua_State *L); LUA_API void lua_pushnumber (lua_State *L, lua_Number n); LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t len); LUA_API void lua_pushstring (lua_State *L, const char *s); +LUA_API void lua_vpushstr (lua_State *L, const char *fmt, va_list argp); LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n); LUA_API void lua_pushboolean (lua_State *L, int b); LUA_API void lua_pushudataval (lua_State *L, void *p); -- cgit v1.2.3-55-g6feb