From: Peter Johnson Date: Sun, 20 May 2001 08:32:08 +0000 (-0000) Subject: yyerror() moved to errwarn.c. Changed file comment to reflect that error X-Git-Tag: v0.1.0~496 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1c9e2fdf76ac5ce987fab8e821b139af84fbb42;p=yasm yyerror() moved to errwarn.c. Changed file comment to reflect that error and warning code is not in this file. svn path=/trunk/yasm/; revision=15 --- diff --git a/frontends/yasm/yasm.c b/frontends/yasm/yasm.c index 6d4cc9f8..99ef3b46 100644 --- a/frontends/yasm/yasm.c +++ b/frontends/yasm/yasm.c @@ -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(); diff --git a/src/main.c b/src/main.c index 2a3c8ceb..f0cf24d8 100644 --- a/src/main.c +++ b/src/main.c @@ -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();