Browse Source

no more use of stdio inside the core (except for `tostring'...)

Roberto Ierusalimschy 23 years ago
parent
commit
ff91b355f4
4 changed files with 5 additions and 11 deletions
  1. 1 2
      llex.c
  2. 2 3
      lparser.c
  3. 1 4
      lstate.c
  4. 1 2
      ltm.c

+ 1 - 2
llex.c

@@ -1,12 +1,11 @@
 /*
-** $Id: llex.c,v 1.101 2002/05/15 18:57:44 roberto Exp roberto $
+** $Id: llex.c,v 1.102 2002/05/16 18:39:46 roberto Exp roberto $
 ** Lexical Analyzer
 ** See Copyright Notice in lua.h
 */
 
 
 #include <ctype.h>
-#include <stdio.h>
 #include <string.h>
 
 #include "lua.h"

+ 2 - 3
lparser.c

@@ -1,11 +1,10 @@
 /*
-** $Id: lparser.c,v 1.183 2002/05/14 17:52:22 roberto Exp roberto $
+** $Id: lparser.c,v 1.184 2002/05/16 18:39:46 roberto Exp roberto $
 ** Lua Parser
 ** See Copyright Notice in lua.h
 */
 
 
-#include <stdio.h>
 #include <string.h>
 
 #include "lua.h"
@@ -852,7 +851,7 @@ static void check_conflict (LexState *ls, struct LHS_assign *lh, expdesc *v) {
 static void assignment (LexState *ls, struct LHS_assign *lh, int nvars) {
   expdesc e;
   check_condition(ls, VLOCAL <= lh->v.k && lh->v.k <= VINDEXED,
-                      "syntax error!");
+                      "syntax error");
   if (ls->t.token == ',') {  /* assignment -> `,' primaryexp assignment */
     struct LHS_assign nv;
     nv.prev = lh;

+ 1 - 4
lstate.c

@@ -1,12 +1,10 @@
 /*
-** $Id: lstate.c,v 1.93 2002/05/07 17:36:56 roberto Exp roberto $
+** $Id: lstate.c,v 1.94 2002/05/08 17:34:23 roberto Exp roberto $
 ** Global State
 ** See Copyright Notice in lua.h
 */
 
 
-#include <stdio.h>
-
 #include "lua.h"
 
 #include "ldo.h"
@@ -30,7 +28,6 @@ static void close_state (lua_State *L);
 ** call `lua_setpanicf'
 */
 static int default_panic (lua_State *L) {
-  fputs("unable to recover; exiting\n", stderr);
   return 0;
 }
 

+ 1 - 2
ltm.c

@@ -1,11 +1,10 @@
 /*
-** $Id: ltm.c,v 1.91 2002/05/20 19:51:06 roberto Exp roberto $
+** $Id: ltm.c,v 1.92 2002/05/27 20:35:40 roberto Exp roberto $
 ** Tag methods
 ** See Copyright Notice in lua.h
 */
 
 
-#include <stdio.h>
 #include <string.h>
 
 #include "lua.h"