Fix compilation problems with Ubuntu 20/Debian 11.
* Bug: In pat, the two "decl" & "desc" parser share their yylval variable, and it was declared in both of them, hence the redefinition error. Now patched extern in "decl". * Bug: In scr/main.{h,c} avoid redefinition of NameVdd & NameVss.
This commit is contained in:
parent
4e726b8c3b
commit
dc2ce7319b
|
@ -26,6 +26,7 @@ pat_decl_y.c pat_decl_y.h : $(srcdir)/pat_decl_y.y
|
|||
&& $(SED) -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" y.tab.c \
|
||||
| $(SED) -e "s/int[ ]*pat_decl_y_char;/extern int pat_decl_y_char;/" \
|
||||
| $(SED) -e "s/int[ ]*pat_decl_y_nerrs;/extern int pat_decl_y_nerrs;/" \
|
||||
| $(SED) -e "s/^PAT_DECL_Y_STYPE[ ]*pat_decl_y_lval;/extern PAT_DECL_Y_STYPE pat_decl_y_lval;/" \
|
||||
> pat_decl_y.c \
|
||||
&& $(SED) -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" y.tab.h > pat_decl_y.h
|
||||
|
||||
|
|
|
@ -64,6 +64,9 @@ PlaceConList *LeadPlaceConList = NULL;
|
|||
extern int L3MODE=0;
|
||||
extern int SXMODE;
|
||||
extern int SCR_RATIO;
|
||||
char *NameVdd=NULL;
|
||||
char *NameVss=NULL;
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/* Function : ScrUsage() */
|
||||
|
|
|
@ -59,5 +59,5 @@ typedef struct XSupplyRecall
|
|||
/******************************************************************************/
|
||||
/* Variables Globales */
|
||||
/******************************************************************************/
|
||||
char *NameVdd;
|
||||
char *NameVss;
|
||||
extern char *NameVdd;
|
||||
extern char *NameVss;
|
||||
|
|
Loading…
Reference in New Issue