diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-16 15:39:46 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-16 15:39:46 -0300 |
| commit | 955def034814e96f5f8e42def2e47ca6817ef103 (patch) | |
| tree | d8eea96980860d1d1e5005ee6ecedb47fa64d594 /lparser.c | |
| parent | 9c3b3f82fe1b0942183ddeef2e16d60bab4f4c06 (diff) | |
| download | lua-955def034814e96f5f8e42def2e47ca6817ef103.tar.gz lua-955def034814e96f5f8e42def2e47ca6817ef103.tar.bz2 lua-955def034814e96f5f8e42def2e47ca6817ef103.zip | |
new names for string formating functions
Diffstat (limited to '')
| -rw-r--r-- | lparser.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lparser.c,v 1.182 2002/05/13 13:09:00 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.183 2002/05/14 17:52:22 roberto Exp roberto $ |
| 3 | ** Lua Parser | 3 | ** Lua Parser |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -70,7 +70,7 @@ static void lookahead (LexState *ls) { | |||
| 70 | 70 | ||
| 71 | static void error_expected (LexState *ls, int token) { | 71 | static void error_expected (LexState *ls, int token) { |
| 72 | luaX_syntaxerror(ls, | 72 | luaX_syntaxerror(ls, |
| 73 | luaO_pushstr(ls->L, "`%s' expected", luaX_token2str(ls, token))); | 73 | luaO_pushfstring(ls->L, "`%s' expected", luaX_token2str(ls, token))); |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | 76 | ||
| @@ -98,7 +98,7 @@ static void check_match (LexState *ls, int what, int who, int where) { | |||
| 98 | if (where == ls->linenumber) | 98 | if (where == ls->linenumber) |
| 99 | error_expected(ls, what); | 99 | error_expected(ls, what); |
| 100 | else { | 100 | else { |
| 101 | luaX_syntaxerror(ls, luaO_pushstr(ls->L, | 101 | luaX_syntaxerror(ls, luaO_pushfstring(ls->L, |
| 102 | "`%s' expected (to close `%s' at line %d)", | 102 | "`%s' expected (to close `%s' at line %d)", |
| 103 | luaX_token2str(ls, what), luaX_token2str(ls, who), where)); | 103 | luaX_token2str(ls, what), luaX_token2str(ls, who), where)); |
| 104 | } | 104 | } |
