aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-03 11:09:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-03 11:09:57 -0300
commitff91b355f451c7b7fc286d8ca9bc8613096f497d (patch)
tree4d68b67ebcb9aa91cbdf27cec4529bc148863fcd /lparser.c
parent5094c37988a535f665c874c2656a992670981451 (diff)
downloadlua-ff91b355f451c7b7fc286d8ca9bc8613096f497d.tar.gz
lua-ff91b355f451c7b7fc286d8ca9bc8613096f497d.tar.bz2
lua-ff91b355f451c7b7fc286d8ca9bc8613096f497d.zip
no more use of stdio inside the core (except for `tostring'...)
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lparser.c b/lparser.c
index 3afe5945..805db329 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,11 +1,10 @@
1/* 1/*
2** $Id: lparser.c,v 1.183 2002/05/14 17:52:22 roberto Exp roberto $ 2** $Id: lparser.c,v 1.184 2002/05/16 18:39:46 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*/
6 6
7 7
8#include <stdio.h>
9#include <string.h> 8#include <string.h>
10 9
11#include "lua.h" 10#include "lua.h"
@@ -852,7 +851,7 @@ static void check_conflict (LexState *ls, struct LHS_assign *lh, expdesc *v) {
852static void assignment (LexState *ls, struct LHS_assign *lh, int nvars) { 851static void assignment (LexState *ls, struct LHS_assign *lh, int nvars) {
853 expdesc e; 852 expdesc e;
854 check_condition(ls, VLOCAL <= lh->v.k && lh->v.k <= VINDEXED, 853 check_condition(ls, VLOCAL <= lh->v.k && lh->v.k <= VINDEXED,
855 "syntax error!"); 854 "syntax error");
856 if (ls->t.token == ',') { /* assignment -> `,' primaryexp assignment */ 855 if (ls->t.token == ',') { /* assignment -> `,' primaryexp assignment */
857 struct LHS_assign nv; 856 struct LHS_assign nv;
858 nv.prev = lh; 857 nv.prev = lh;