diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-03 11:09:57 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-03 11:09:57 -0300 |
commit | ff91b355f451c7b7fc286d8ca9bc8613096f497d (patch) | |
tree | 4d68b67ebcb9aa91cbdf27cec4529bc148863fcd | |
parent | 5094c37988a535f665c874c2656a992670981451 (diff) | |
download | lua-ff91b355f451c7b7fc286d8ca9bc8613096f497d.tar.gz lua-ff91b355f451c7b7fc286d8ca9bc8613096f497d.tar.bz2 lua-ff91b355f451c7b7fc286d8ca9bc8613096f497d.zip |
no more use of stdio inside the core (except for `tostring'...)
-rw-r--r-- | llex.c | 3 | ||||
-rw-r--r-- | lparser.c | 5 | ||||
-rw-r--r-- | lstate.c | 5 | ||||
-rw-r--r-- | ltm.c | 3 |
4 files changed, 5 insertions, 11 deletions
@@ -1,12 +1,11 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 1.101 2002/05/15 18:57:44 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.102 2002/05/16 18:39:46 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | 7 | ||
8 | #include <ctype.h> | 8 | #include <ctype.h> |
9 | #include <stdio.h> | ||
10 | #include <string.h> | 9 | #include <string.h> |
11 | 10 | ||
12 | #include "lua.h" | 11 | #include "lua.h" |
@@ -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) { | |||
852 | static void assignment (LexState *ls, struct LHS_assign *lh, int nvars) { | 851 | static 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; |
@@ -1,12 +1,10 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.93 2002/05/07 17:36:56 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.94 2002/05/08 17:34:23 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
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 | |||
10 | #include "lua.h" | 8 | #include "lua.h" |
11 | 9 | ||
12 | #include "ldo.h" | 10 | #include "ldo.h" |
@@ -30,7 +28,6 @@ static void close_state (lua_State *L); | |||
30 | ** call `lua_setpanicf' | 28 | ** call `lua_setpanicf' |
31 | */ | 29 | */ |
32 | static int default_panic (lua_State *L) { | 30 | static int default_panic (lua_State *L) { |
33 | fputs("unable to recover; exiting\n", stderr); | ||
34 | return 0; | 31 | return 0; |
35 | } | 32 | } |
36 | 33 | ||
@@ -1,11 +1,10 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.c,v 1.91 2002/05/20 19:51:06 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 1.92 2002/05/27 20:35:40 roberto Exp roberto $ |
3 | ** Tag methods | 3 | ** Tag methods |
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" |