aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-12-03 18:44:19 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-12-03 18:44:19 -0200
commit8b239eeba13877955b976ccd119ada038b67fa59 (patch)
tree24a7f88eb90c57a3ca6b2566e0854dbde0a0e9f9 /lparser.c
parenta5330b77f33725ce63d90f6ae664b651bb362042 (diff)
downloadlua-8b239eeba13877955b976ccd119ada038b67fa59.tar.gz
lua-8b239eeba13877955b976ccd119ada038b67fa59.tar.bz2
lua-8b239eeba13877955b976ccd119ada038b67fa59.zip
details
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lparser.c b/lparser.c
index e35091e9..17a89fd3 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.7 2004/11/19 16:59:08 roberto Exp roberto $ 2** $Id: lparser.c,v 2.8 2004/12/03 20:35:33 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*/
@@ -133,7 +133,7 @@ static void check_match (LexState *ls, int what, int who, int where) {
133 133
134static TString *str_checkname (LexState *ls) { 134static TString *str_checkname (LexState *ls) {
135 TString *ts; 135 TString *ts;
136 check_condition(ls, (ls->t.token == TK_NAME), "<name> expected"); 136 if (ls->t.token != TK_NAME) error_expected(ls, TK_NAME);
137 ts = ls->t.seminfo.ts; 137 ts = ls->t.seminfo.ts;
138 next(ls); 138 next(ls);
139 return ts; 139 return ts;