summaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lobject.c b/lobject.c
index 52e81205..a57db0c3 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 1.79 2002/05/07 17:36:56 roberto Exp roberto $ 2** $Id: lobject.c,v 1.80 2002/05/15 18:57:44 roberto Exp roberto $
3** Some generic functions over Lua objects 3** Some generic functions over Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -99,7 +99,7 @@ static void pushstr (lua_State *L, const char *str) {
99 99
100 100
101/* this function handles only `%d', `%c', %f, and `%s' formats */ 101/* this function handles only `%d', `%c', %f, and `%s' formats */
102const char *luaO_vpushstr (lua_State *L, const char *fmt, va_list argp) { 102const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) {
103 int n = 1; 103 int n = 1;
104 pushstr(L, ""); 104 pushstr(L, "");
105 for (;;) { 105 for (;;) {
@@ -141,11 +141,11 @@ const char *luaO_vpushstr (lua_State *L, const char *fmt, va_list argp) {
141} 141}
142 142
143 143
144const char *luaO_pushstr (lua_State *L, const char *fmt, ...) { 144const char *luaO_pushfstring (lua_State *L, const char *fmt, ...) {
145 const char *msg; 145 const char *msg;
146 va_list argp; 146 va_list argp;
147 va_start(argp, fmt); 147 va_start(argp, fmt);
148 msg = luaO_vpushstr(L, fmt, argp); 148 msg = luaO_pushvfstring(L, fmt, argp);
149 va_end(argp); 149 va_end(argp);
150 return msg; 150 return msg;
151} 151}