K&R lef/*.c: bulk forward reference function prototype conversion

K&R obsolete syntax removal for C23 compatibility series
This commit is contained in:
Darryl L. Miles 2025-01-04 08:58:09 +00:00 committed by Tim Edwards
parent 05a5b169bc
commit 695692b620
2 changed files with 13 additions and 13 deletions

View File

@ -79,7 +79,7 @@ typedef struct {
/*----------------------------------------------------------------------*/
char *defGetType(); /* Forward declaration */
char *defGetType(TileType ttype, lefLayer **lefptr, bool do_vias); /* Forward declaration */
/*----------------------------------------------------------------------*/
@ -248,7 +248,7 @@ defCountNets(
bool allSpecial)
{
NetCount total;
int defnodeCount();
int defnodeCount(EFNode *node, int res, EFCapValue cap, NetCount *total);
total.regular = (allSpecial) ? -1 : 0;
total.special = 0;
@ -400,7 +400,7 @@ defHNsprintf(
{
const char *cp;
char c;
char *defHNsprintfPrefix();
char *defHNsprintfPrefix(const HierName *hierName, char *str, char divchar); /* Forward declaration */
if (hierName->hn_parent) str = defHNsprintfPrefix(hierName->hn_parent, str,
divchar);
@ -639,7 +639,7 @@ defWriteNets(
unsigned char specialmode) /* What to write as a SPECIALNET */
{
DefData defdata;
int defnodeVisit();
int defnodeVisit(EFNode *node, int res, EFCapValue cap, DefData *defdata);
defdata.f = f;
defdata.scale = oscale;
@ -672,7 +672,7 @@ defnodeVisit(
Rect *nodeloc;
LinkedRect *lr;
EFNodeName *thisnn;
int defNetGeometryFunc(); /* Forward declaration */
int defNetGeometryFunc(Tile *tile, int plane, DefData *defdata); /* Forward declaration */
/* For regular nets, only count those nodes having port */
/* connections. For special nets, only count those nodes */
@ -785,7 +785,7 @@ defnodeVisit(
Rect rport;
SearchContext scx;
int defPortTileFunc(); /* Fwd declaration */
int defPortTileFunc(Tile *tile, TreeContext *cx); /* Fwd declaration */
scx.scx_area = node->efnode_loc;
scx.scx_use = def->cd_parents;
@ -1658,7 +1658,7 @@ defCountVias(
TileType ttype, stype;
int pNum;
CViaData cviadata;
int defCountViaFunc();
int defCountViaFunc(Tile *tile, CViaData *cviadata);
cviadata.scale = oscale;
cviadata.total = 0;
@ -2263,7 +2263,7 @@ defCountComponents(
CellDef *rootDef)
{
pointertype total;
int defCountCompFunc();
int defCountCompFunc(CellUse *cellUse, pointertype *total);
TxPrintf("Diagnostic: Finding all components of cell %s\n", rootDef->cd_name);
@ -2462,8 +2462,8 @@ defWriteBlockages(
HashEntry *he;
TileTypeBitMask ExtraObsLayersMask;
int defSimpleBlockageFunc(); /* Forward declaration */
int defblockageVisit();
int defSimpleBlockageFunc(Tile *tile, DefObsData *defobsdata); /* Forward declaration */
int defblockageVisit(EFNode *node, int res, EFCapValue cap, DefObsData *defobsdata);
defobsdata.def = rootDef;
defobsdata.nlayers = 0;
@ -2591,7 +2591,7 @@ defblockageVisit(
CellDef *def = defobsdata->def;
TileType magictype;
TileTypeBitMask tmask;
int defBlockageGeometryFunc(); /* Forward declaration */
int defBlockageGeometryFunc(Tile *tile, int plane, DefObsData *defobsdata); /* Forward declaration */
/* For regular nets, only count those nodes having port */
/* connections. For special nets, only count those nodes */
@ -2739,7 +2739,7 @@ defWriteComponents(
float oscale) /* Output scale factor */
{
DefData defdata;
int defComponentFunc(); /* Forward declaration */
int defComponentFunc(CellUse *cellUse, DefData *defdata); /* Forward declaration */
defdata.f = f;
defdata.scale = oscale;

View File

@ -25,7 +25,7 @@
/* External routines */
extern void CmdLef();
extern void CmdLef(MagWindow *w, TxCommand *cmd);
/*
* ----------------------------------------------------------------------------