* Bug correction (compliance with gcc 3.4.x).

This commit is contained in:
Jean-Paul Chaput 2005-02-17 15:34:44 +00:00
parent cb56ada861
commit a31b5ec9de
7 changed files with 55 additions and 51 deletions

View File

@ -168,7 +168,7 @@ static int addgeneric(chain_list *abl, befig_list* befig, int area, float R, flo
if ( !abl ) if ( !abl )
{ {
fprintf(stderr,__FUNCTION__ ": NULL pointer\n"); fprintf(stderr,"addgeneric() : NULL pointer\n");
exit(1); exit(1);
} }

View File

@ -1,5 +1,5 @@
/* /*
* $Id: dpgen_Regular.c,v 1.2 2002/09/30 16:20:22 czo Exp $ * $Id: dpgen_Regular.c,v 1.3 2005/02/17 15:34:44 jpc Exp $
* *
* /----------------------------------------------------------------\ * /----------------------------------------------------------------\
* | | * | |
@ -257,6 +257,7 @@ static long set_iLeafCell ()
case DPGEN_BUFF: LV_iLeafCell += CELLS_INV; case DPGEN_BUFF: LV_iLeafCell += CELLS_INV;
case DPGEN_INV: case DPGEN_INV:
default: default:
break;
} }
return (LV_iLeafCell); return (LV_iLeafCell);
@ -1057,6 +1058,7 @@ static void VHDL_entity ()
fprintf (LV_FILE, "%14s : in BIT_VECTOR %s;\n", "i0", sBusWide); fprintf (LV_FILE, "%14s : in BIT_VECTOR %s;\n", "i0", sBusWide);
break; break;
case DPGEN_CONST: case DPGEN_CONST:
break;
} }
@ -1506,6 +1508,7 @@ extern void dpgen_Regular (aFunction, aAL)
case DPGEN_DFFT: case DPGEN_DFFT:
case DPGEN_SFF: case DPGEN_SFF:
case DPGEN_SFFT: case DPGEN_SFFT:
break;
} }

View File

@ -1,5 +1,5 @@
/* /*
* $Id: dpgen_uROM.c,v 1.2 2002/09/30 16:20:22 czo Exp $ * $Id: dpgen_uROM.c,v 1.3 2005/02/17 15:34:44 jpc Exp $
* *
* /----------------------------------------------------------------\ * /----------------------------------------------------------------\
* | | * | |
@ -113,6 +113,7 @@ static long set_iLeafCell ()
case DPGEN_ROM4: LV_iLeafCell += CELLS_ROM2; case DPGEN_ROM4: LV_iLeafCell += CELLS_ROM2;
case DPGEN_ROM2: case DPGEN_ROM2:
default: default:
break;
} }
return (LV_iLeafCell); return (LV_iLeafCell);

View File

@ -46,7 +46,7 @@
/* printer. */ /* printer. */
/****************************************************************************/ /****************************************************************************/
#ident "$Id: drive_ps.c,v 1.4 2002/09/30 16:20:42 czo Exp $" #ident "$Id: drive_ps.c,v 1.5 2005/02/17 15:34:44 jpc Exp $"
#define DRIVE2PS #define DRIVE2PS
@ -509,6 +509,34 @@ int l;
}; };
}; };
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void stonrec (ax,ay,aw,ah,ar,ap)
double ax,ay,aw,ah;
rdsrec_list *ar;
rps_pge *ap;
{
list_rnm *recpno;
if (!p.norectname && ar->NAME!=NULL && !IsRdsConInter(ar)) {
if ((IsRdsConExter(ar) && p.noconame) ||
(IsRdsReference(ar) && p.norefname) ||
(IsRdsInstance(ar) && p.noinstname) ||
(IsRdsSegment(ar) && p.nosegname) ) {
}
else {
recpno=(list_rnm *) mbkalloc (sizeof(list_rnm));
recpno->x=(int)(ax+(aw/2.0));
recpno->y=(int)(ay+(ah/2.0));
recpno->rot=RDS_NO;
if ((ah > aw) && IsRdsInstance(ar)) recpno->rot=RDS_YES;
recpno->lirec=ar;
recpno->next=ap->prpnom;
ap->prpnom=recpno;
};
};
return;
};
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void rps_filter_rec (r) void rps_filter_rec (r)
rdsrec_list *r; rdsrec_list *r;
@ -570,34 +598,6 @@ rdsrec_list *r;
}; };
}; };
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void stonrec (ax,ay,aw,ah,ar,ap)
double ax,ay,aw,ah;
rdsrec_list *ar;
rps_pge *ap;
{
list_rnm *recpno;
if (!p.norectname && ar->NAME!=NULL && !IsRdsConInter(ar)) {
if ((IsRdsConExter(ar) && p.noconame) ||
(IsRdsReference(ar) && p.norefname) ||
(IsRdsInstance(ar) && p.noinstname) ||
(IsRdsSegment(ar) && p.nosegname) ) {
}
else {
recpno=(list_rnm *) mbkalloc (sizeof(list_rnm));
recpno->x=(int)(ax+(aw/2.0));
recpno->y=(int)(ay+(ah/2.0));
recpno->rot=RDS_NO;
if ((ah > aw) && IsRdsInstance(ar)) recpno->rot=RDS_YES;
recpno->lirec=ar;
recpno->next=ap->prpnom;
ap->prpnom=recpno;
};
};
return;
};
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void addname() void addname()
{ {

View File

@ -1,7 +1,7 @@
// -*- C++ -*- // -*- C++ -*-
// //
// $Id: MDRGrid.cpp,v 1.4 2004/07/23 08:50:04 jpc Exp $ // $Id: MDRGrid.cpp,v 1.5 2005/02/17 15:34:44 jpc Exp $
// //
// /----------------------------------------------------------------\ // /----------------------------------------------------------------\
// | | // | |
@ -496,7 +496,7 @@ template<class __CNode__>
TMatrix<__CNode__>::TMatrix (CDRGrid *drgrid) TMatrix<__CNode__>::TMatrix (CDRGrid *drgrid)
{ {
_drgrid = drgrid; _drgrid = drgrid;
_grid = new (__CNode__) [_drgrid->size]; _grid = new __CNode__ [_drgrid->size];
} }

View File

@ -1,5 +1,5 @@
/* /*
* $Id: util_Defs.h,v 1.4 2002/09/30 16:21:18 czo Exp $ * $Id: util_Defs.h,v 1.5 2005/02/17 15:34:44 jpc Exp $
* *
* /----------------------------------------------------------------\ * /----------------------------------------------------------------\
* | | * | |
@ -370,22 +370,22 @@
} ePow_t; } ePow_t;
extern struct ePow_s *addPow __FP((struct ePow_s **applPow, extern ePow_t *addPow __FP((ePow_t **applPow,
long aY, long aY,
long aW, long aW,
char *aName, char *aName,
char aType, char aType,
char aDir)); char aDir));
extern void freePow __FP((struct ePow_s *aplPow)); extern void freePow __FP((struct ePow_s *aplPow));
extern struct ePow_s *getPow __FP((struct ePow_s *aplPow, long aY)); extern struct ePow_s *getPow __FP((struct ePow_s *aplPow, long aY));
extern void mergeXPow __FP((struct ePow_s *apPow, extern void mergeXPow __FP((struct ePow_s *apPow,
long axMin, long axMin,
long axMax, long axMax,
long aW)); long aW));
extern struct ePow_s *buildPow __FP((struct phfig *apPhfig, extern ePow_t *buildPow __FP((phfig_list *apPhfig,
char aLayer, char aLayer,
char aDir, char aDir,
char *asSuffix)); char *asSuffix));
extern void powToCon __FP(( struct phfig *apPhfig, extern void powToCon __FP(( struct phfig *apPhfig,
char aLayer, char aLayer,
char aDir, char aDir,

View File

@ -1,6 +1,6 @@
/* /*
* $Id: util_MBK.c,v 1.4 2003/10/28 14:42:05 xtof Exp $ * $Id: util_MBK.c,v 1.5 2005/02/17 15:34:44 jpc Exp $
* *
* /----------------------------------------------------------------\ * /----------------------------------------------------------------\
* | | * | |
@ -1087,11 +1087,11 @@ extern long cmpSigName(apLoSig, asName)
* Function : "addInsLoCon()". * Function : "addInsLoCon()".
*/ */
extern locon_list *addInsLoCon(apIns, asName, apSig, aDir) extern struct locon *addInsLoCon(apIns, asName, apSig, aDir)
loins_list *apIns; struct loins *apIns;
char *asName; char *asName;
losig_list *apSig; struct losig *apSig;
char aDir; char aDir;
{ {
locon_list *pCon; locon_list *pCon;
char *sName; char *sName;