This commit is contained in:
parent
87210516bd
commit
a41f62ac2b
|
@ -20,3 +20,5 @@ pat_decl_l.c : $(srcdir)/pat_decl_l.l pat_decl_y.h
|
||||||
pat_desc_y.c pat_desc_y.h : $(srcdir)/pat_desc_y.y
|
pat_desc_y.c pat_desc_y.h : $(srcdir)/pat_desc_y.y
|
||||||
$(YACC) -d $(YFLAGS) $(srcdir)/pat_desc_y.y && sed -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" y.tab.c > pat_desc_y.c && sed -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" y.tab.h > pat_desc_y.h
|
$(YACC) -d $(YFLAGS) $(srcdir)/pat_desc_y.y && sed -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" y.tab.c > pat_desc_y.c && sed -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" y.tab.h > pat_desc_y.h
|
||||||
|
|
||||||
|
pat_desc_l.c : $(srcdir)/pat_desc_l.l pat_desc_y.h
|
||||||
|
$(LEX) -t $(srcdir)/pat_desc_l.l | sed -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" > pat_desc_l.c
|
||||||
|
|
|
@ -341,10 +341,12 @@ struct paseq *ptseq ;
|
||||||
|
|
||||||
{
|
{
|
||||||
extern FILE *pat_decl_y_in ;
|
extern FILE *pat_decl_y_in ;
|
||||||
|
extern FILE *pat_desc_y_in ;
|
||||||
static int call_nbr = 0;
|
static int call_nbr = 0;
|
||||||
|
|
||||||
PAT_SEQPNT = ptseq;
|
PAT_SEQPNT = ptseq;
|
||||||
pat_decl_y_in = fp;
|
pat_decl_y_in = fp;
|
||||||
|
pat_desc_y_in = fp;
|
||||||
|
|
||||||
PAT_INSPNT = NULL;
|
PAT_INSPNT = NULL;
|
||||||
PAT_COMPNT = NULL;
|
PAT_COMPNT = NULL;
|
||||||
|
|
|
@ -627,6 +627,7 @@ unsigned char mode ; /* the description style */
|
||||||
|
|
||||||
struct papat *lastpat;
|
struct papat *lastpat;
|
||||||
extern FILE *pat_desc_y_in;
|
extern FILE *pat_desc_y_in;
|
||||||
|
extern FILE *pat_decl_y_in;
|
||||||
int i ;
|
int i ;
|
||||||
|
|
||||||
if ((ptseq == NULL) || (ptseq->ERRFLG != 0))
|
if ((ptseq == NULL) || (ptseq->ERRFLG != 0))
|
||||||
|
@ -843,6 +844,7 @@ unsigned char mode ; /* the description style */
|
||||||
NAM_IDX = 0 ;
|
NAM_IDX = 0 ;
|
||||||
|
|
||||||
pat_desc_y_in = fp;
|
pat_desc_y_in = fp;
|
||||||
|
pat_decl_y_in = fp;
|
||||||
|
|
||||||
/* ###------------------------------------------------------### */
|
/* ###------------------------------------------------------### */
|
||||||
/* call the parser and, prepare the returned structure */
|
/* call the parser and, prepare the returned structure */
|
||||||
|
|
Loading…
Reference in New Issue