collect prototype for mod_yyerror() in "mod_yacc_y.h", and fix return type

This commit is contained in:
rlar 2010-10-15 18:47:20 +00:00
parent bdd308ede7
commit 1c2bae2c48
5 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2010-10-15 Robert Larice
* src/xspice/cmpp/mod_lex.l ,
* src/xspice/cmpp/mod_yacc.y ,
* src/xspice/cmpp/mod_yacc_y.h ,
* src/xspice/cmpp/pp_mod.c :
collect prototype for mod_yyerror() in "mod_yacc_y.h", and fix return type
2010-10-15 Robert Larice
* src/ciderlib/input/output.c :
visibility for tildexpand() prototyp

View File

@ -44,7 +44,6 @@ NON-STANDARD FEATURES
#include "mod_yacc_y.h"
#include "mod_yacc.h"
extern void mod_yyerror(char*);
%}

View File

@ -100,7 +100,6 @@ Ifs_Table_t *mod_ifs_table;
extern char *mod_yytext;
extern FILE* mod_yyout;
extern void mod_yyerror(char*);
#include <string.h>
#include <ctype.h>

View File

@ -47,3 +47,5 @@ typedef struct {
Boolean_t has_subscript;
char *subscript;
} Sub_Id_t;
extern void mod_yyerror(char*);

View File

@ -58,7 +58,7 @@ NON-STANDARD FEATURES
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "cmpp.h"
#include "mod_yacc_y.h"
extern int mod_yyparse(void);
extern void mod_yyrestart (FILE*);
@ -181,12 +181,10 @@ void preprocess_mod_file (
}
/*---------------------------------------------------------------------------*/
int
void
mod_yyerror (char *str)
{
fprintf (stderr, "%s: Error: \"%s\": line %d (near \'%s\'):\n\t%s.\n",
prog_name, current_filename, mod_yylineno, mod_yytext, str);
return 0;
}