From 955def034814e96f5f8e42def2e47ca6817ef103 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 16 May 2002 15:39:46 -0300 Subject: new names for string formating functions --- lparser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lparser.c') diff --git a/lparser.c b/lparser.c index af9d0f6e..3afe5945 100644 --- a/lparser.c +++ b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 1.182 2002/05/13 13:09:00 roberto Exp roberto $ +** $Id: lparser.c,v 1.183 2002/05/14 17:52:22 roberto Exp roberto $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -70,7 +70,7 @@ static void lookahead (LexState *ls) { static void error_expected (LexState *ls, int token) { luaX_syntaxerror(ls, - luaO_pushstr(ls->L, "`%s' expected", luaX_token2str(ls, token))); + luaO_pushfstring(ls->L, "`%s' expected", luaX_token2str(ls, token))); } @@ -98,7 +98,7 @@ static void check_match (LexState *ls, int what, int who, int where) { if (where == ls->linenumber) error_expected(ls, what); else { - luaX_syntaxerror(ls, luaO_pushstr(ls->L, + luaX_syntaxerror(ls, luaO_pushfstring(ls->L, "`%s' expected (to close `%s' at line %d)", luaX_token2str(ls, what), luaX_token2str(ls, who), where)); } -- cgit v1.2.3-55-g6feb