]> granicus.if.org Git - yasm/commitdiff
yyerror() moved to errwarn.c. Changed file comment to reflect that error
authorPeter Johnson <peter@tortall.net>
Sun, 20 May 2001 08:32:08 +0000 (08:32 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 20 May 2001 08:32:08 +0000 (08:32 -0000)
and warning code is not in this file.

svn path=/trunk/yasm/; revision=15

frontends/yasm/yasm.c
src/main.c

index 6d4cc9f8ee94429217fed962658404e6d48c0f80..99ef3b46c7480d799f733a06daf2aef6821cf28e 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: yasm.c,v 1.1 2001/05/15 05:24:04 peter Exp $
- * Program entry point, command line parsing, error/warning output functions
+/* $Id: yasm.c,v 1.2 2001/05/20 08:32:08 peter Exp $
+ * Program entry point, command line parsing
  *
  *  Copyright (C) 2001  Peter Johnson
  *
@@ -29,10 +29,6 @@ extern int yyparse(void);
 unsigned int line_number = 1;
 unsigned int mode_bits = 32;
 
-void yyerror(char *s) {
-    fprintf(stderr, "%d: %s\n", line_number, s);
-}
-
 int main(void) {
     yydebug = 1;
     yyparse();
index 2a3c8ceb237798176df26fef6a7b3411fac03bab..f0cf24d883b34edbd0f03a4dcf2b08a782b0f40b 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: main.c,v 1.1 2001/05/15 05:24:04 peter Exp $
- * Program entry point, command line parsing, error/warning output functions
+/* $Id: main.c,v 1.2 2001/05/20 08:32:08 peter Exp $
+ * Program entry point, command line parsing
  *
  *  Copyright (C) 2001  Peter Johnson
  *
@@ -29,10 +29,6 @@ extern int yyparse(void);
 unsigned int line_number = 1;
 unsigned int mode_bits = 32;
 
-void yyerror(char *s) {
-    fprintf(stderr, "%d: %s\n", line_number, s);
-}
-
 int main(void) {
     yydebug = 1;
     yyparse();