Browse Source

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

pre-master-46
rlar 16 years ago
parent
commit
1c2bae2c48
  1. 7
      ChangeLog
  2. 1
      src/xspice/cmpp/mod_lex.l
  3. 1
      src/xspice/cmpp/mod_yacc.y
  4. 2
      src/xspice/cmpp/mod_yacc_y.h
  5. 6
      src/xspice/cmpp/pp_mod.c

7
ChangeLog

@ -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

1
src/xspice/cmpp/mod_lex.l

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

1
src/xspice/cmpp/mod_yacc.y

@ -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>

2
src/xspice/cmpp/mod_yacc_y.h

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

6
src/xspice/cmpp/pp_mod.c

@ -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;
}
Loading…
Cancel
Save