Strange exchange between decl & desc in PAT sed patterns.

This commit is contained in:
Jean-Paul Chaput 2018-09-02 19:47:55 +02:00
parent 52fe1c961f
commit c5d9fbe540
4 changed files with 6 additions and 5 deletions

View File

@ -35,6 +35,8 @@
# include "gscr_SymbChanRout.h"
# include "gscr_DynamicUtil.h"
long TabRout[MAXCOL][MAXLINE];
long EndPattern = LEADPATTERN;
BOOLEAN TOPNOTROUT, BOTNOTROUT;
/******************************************************************************/

View File

@ -35,9 +35,9 @@ 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/yyparse/pat_desc_y_parse/g" y.tab.c \
| $(SED) -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" > pat_desc_y.c \
| $(SED) -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" > pat_desc_y.c \
&& $(SED) -e "s/yyparse/pat_desc_y_parse/g" y.tab.h \
| $(SED) -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" > pat_desc_y.h
| $(SED) -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" > pat_desc_y.h
#$(SED) -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" > 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
# $(SED) -e "s/yyin/pat_decl_y_/g" -e "s/yylex/pat_decl_y_lex/g" y.tab.c |

View File

@ -1,7 +1,7 @@
%{
#include <stdio.h>
#include <string.h>
#include <malloc/malloc.h>
#include <stdio.h>
#include <stdlib.h>
# include <mut.h>
# include <mlo.h>
# include <mph.h>

View File

@ -43,7 +43,6 @@
| |
\------------------------------------------------------------*/
# include <malloc/malloc.h>
# include <stdlib.h>
# include <string.h>
# include "mut.h"