This commit is contained in:
Ludovic Jacomme 2002-04-11 12:33:41 +00:00
parent 87210516bd
commit a41f62ac2b
3 changed files with 6 additions and 0 deletions

View File

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

View File

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

View File

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