collect prototype for ifs_yyerror() in "ifs_yacc_y.h", and fix return type

This commit is contained in:
rlar 2010-10-15 18:49:12 +00:00
parent 1c2bae2c48
commit 7f7504f30a
5 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2010-10-15 Robert Larice
* src/xspice/cmpp/ifs_lex.l ,
* src/xspice/cmpp/ifs_yacc.y ,
* src/xspice/cmpp/ifs_yacc_y.h ,
* src/xspice/cmpp/read_ifs.c :
collect prototype for ifs_yyerror() in "ifs_yacc_y.h", and fix return type
2010-10-15 Robert Larice
* src/xspice/cmpp/mod_lex.l ,
* src/xspice/cmpp/mod_yacc.y ,

View File

@ -51,7 +51,6 @@ NON-STANDARD FEATURES
int yyival;
double yydval;
extern void ifs_yyerror (char*);
/*
* IFS specs are case insensitive:

View File

@ -92,7 +92,6 @@ extern int yylineno;
extern int yyival;
extern double yydval;
extern char *ifs_yytext;
extern void yyerror (char*);
extern int ifs_yylex(void);
Boolean_t parser_just_names;

View File

@ -79,3 +79,6 @@ typedef struct ctype_list_s {
My_Port_Type_t ctype;
struct ctype_list_s *next;
} Ctype_List_t;
extern void ifs_yyerror(char*);

View File

@ -48,7 +48,7 @@ NON-STANDARD FEATURES
#include <assert.h>
#include <stdio.h>
#include "cmpp.h"
#include "ifs_yacc_y.h"
extern char *prog_name;
extern int ifs_yyparse (void);
@ -167,12 +167,10 @@ static Status_t read_ifs_table(
/*---------------------------------------------------------------------------*/
int
void
ifs_yyerror (char *str)
{
fprintf (stderr, "%s: Error: \"%s\": line %d (near \'%s\'):\n\t%s.\n",
prog_name, current_filename, ifs_yylineno, ifs_yytext, str);
return 0;
}