From a41f62ac2b05b74b896e3ca6a945a07d4ab10d36 Mon Sep 17 00:00:00 2001 From: Ludovic Jacomme Date: Thu, 11 Apr 2002 12:33:41 +0000 Subject: [PATCH] Hi --- alliance/src/ppt/src/Makefile.am | 2 ++ alliance/src/ppt/src/pat_decl_y.y | 2 ++ alliance/src/ppt/src/pat_desc_y.y | 2 ++ 3 files changed, 6 insertions(+) diff --git a/alliance/src/ppt/src/Makefile.am b/alliance/src/ppt/src/Makefile.am index 0c28ab05..0c6e89ab 100644 --- a/alliance/src/ppt/src/Makefile.am +++ b/alliance/src/ppt/src/Makefile.am @@ -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 $(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 diff --git a/alliance/src/ppt/src/pat_decl_y.y b/alliance/src/ppt/src/pat_decl_y.y index c1770591..e07cb94c 100644 --- a/alliance/src/ppt/src/pat_decl_y.y +++ b/alliance/src/ppt/src/pat_decl_y.y @@ -341,10 +341,12 @@ struct paseq *ptseq ; { extern FILE *pat_decl_y_in ; + extern FILE *pat_desc_y_in ; static int call_nbr = 0; PAT_SEQPNT = ptseq; pat_decl_y_in = fp; + pat_desc_y_in = fp; PAT_INSPNT = NULL; PAT_COMPNT = NULL; diff --git a/alliance/src/ppt/src/pat_desc_y.y b/alliance/src/ppt/src/pat_desc_y.y index 38300d7f..de53c6c8 100644 --- a/alliance/src/ppt/src/pat_desc_y.y +++ b/alliance/src/ppt/src/pat_desc_y.y @@ -627,6 +627,7 @@ unsigned char mode ; /* the description style */ struct papat *lastpat; extern FILE *pat_desc_y_in; + extern FILE *pat_decl_y_in; int i ; if ((ptseq == NULL) || (ptseq->ERRFLG != 0)) @@ -843,6 +844,7 @@ unsigned char mode ; /* the description style */ NAM_IDX = 0 ; pat_desc_y_in = fp; + pat_decl_y_in = fp; /* ###------------------------------------------------------### */ /* call the parser and, prepare the returned structure */