drop yyparse() prototypes, require bison >= 2.7 which emits them

This commit is contained in:
rlar 2015-10-12 20:18:14 +02:00
parent 98860e4ade
commit 45117c94fd
6 changed files with 2 additions and 6 deletions

View File

@ -3,7 +3,6 @@ struct PPltype {
};
extern int PPlex(YYSTYPE *lvalp, struct PPltype *llocp, char **line);
extern int PPdebug;
extern struct pnode *PP_mkunode(int op, struct pnode *arg);
extern struct pnode *PP_mkfnode(const char *func, struct pnode *arg);

View File

@ -29,6 +29,7 @@
static void PPerror (YYLTYPE *locp, char **line, struct pnode **retval, char const *);
%}
%require "2.7"
%name-prefix "PP"
%defines

View File

@ -22,8 +22,6 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
static bool checkvalid(struct pnode *pn);
extern int PPparse(char **, struct pnode **);
void db_print_pnode_tree(struct pnode *p, char *print);

View File

@ -3,7 +3,6 @@ struct PTltype {
};
extern int PTlex(YYSTYPE *lvalp, struct PTltype *llocp, char **line);
extern int PTdebug;
extern INPparseNode *PT_mkbnode(const char *opstr, INPparseNode *arg1, INPparseNode *arg2);
extern INPparseNode *PT_mkfnode(const char *fname, INPparseNode *arg);

View File

@ -28,6 +28,7 @@
static void PTerror (YYLTYPE *locp, char **line, struct INPparseNode **retval, void *ckt, char const *);
%}
%require "2.7"
%name-prefix "PT"
%defines

View File

@ -14,8 +14,6 @@ Author: 1987 Wayne A. Christopher, U. C. Berkeley CAD Group
#include "inpptree-parser.h"
#include "inpptree-parser-y.h"
int PTparse(char **line, INPparseNode **p, CKTcircuit *ckt);
static INPparseNode *mkcon(double value);
static INPparseNode *mkb(int type, INPparseNode * left,
INPparseNode * right);