mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-04 16:40:49 +02:00
Annotate ClientData callbacks: /*ARGSUSED*/ + /* UNUSED */ markers
All functions that received a ClientData (or FindRegion *) parameter in
commit fc21472e solely to satisfy WASM call_indirect signature matching
are now annotated so static analysers and casual readers can see the
intent has been verified:
/*ARGSUSED*/ before each such function definition
/* UNUSED */ on each unused parameter in the definition
/* UNUSED */ on matching forward declarations
Affected: calmaWriteInitFunc, cifWriteInitFunc, cmdWindSet,
dbStampFunc, dbwElementAlways1, dbwfbWindFunc, DBWHLRedrawWind,
spcnodeHierVisit, extSDTileFunc, extTransPerimFunc,
extAnnularTileFunc, extResistorTileFunc, extDefInitFunc,
extTimesInitFunc.
This commit is contained in:
committed by
R. Timothy Edwards
parent
1d402d2c5f
commit
f802d729af
+12
-8
@@ -147,13 +147,13 @@ NodeRegion *temp_subsnode = NULL; /* Last subsnode found */
|
||||
/* Forward declarations */
|
||||
void extOutputNodes();
|
||||
int extTransTileFunc();
|
||||
int extTransPerimFunc(Boundary *, ClientData);
|
||||
int extTransPerimFunc(Boundary *, ClientData); /* UNUSED */
|
||||
int extTransFindSubs();
|
||||
int extTransFindId();
|
||||
void extTermAPFunc();
|
||||
|
||||
int extAnnularTileFunc(Tile *, TileType, int, FindRegion *);
|
||||
int extResistorTileFunc(Tile *, TileType, int, FindRegion *);
|
||||
int extAnnularTileFunc(Tile *, TileType, int, FindRegion *); /* UNUSED */
|
||||
int extResistorTileFunc(Tile *, TileType, int, FindRegion *); /* UNUSED */
|
||||
int extSpecialPerimFunc();
|
||||
|
||||
void extFindDuplicateLabels();
|
||||
@@ -2185,12 +2185,13 @@ extDevFindParamMatch(devptr, length, width)
|
||||
*
|
||||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
extSDTileFunc(tile, dinfo, pNum, arg)
|
||||
Tile *tile;
|
||||
TileType dinfo; /* (unused) */
|
||||
TileType dinfo; /* UNUSED */
|
||||
int pNum;
|
||||
FindRegion *arg;
|
||||
FindRegion *arg; /* UNUSED */
|
||||
{
|
||||
LinkedTile *newdevtile;
|
||||
|
||||
@@ -3948,10 +3949,11 @@ extTermAPFunc(tile, dinfo, eapd)
|
||||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
extTransPerimFunc(bp, cdata)
|
||||
Boundary *bp;
|
||||
ClientData cdata;
|
||||
ClientData cdata; /* UNUSED */
|
||||
{
|
||||
TileType tinside, toutside, dinfo;
|
||||
Tile *tile;
|
||||
@@ -4227,12 +4229,13 @@ extTransPerimFunc(bp, cdata)
|
||||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
extAnnularTileFunc(tile, dinfo, pNum, arg)
|
||||
Tile *tile;
|
||||
TileType dinfo;
|
||||
int pNum;
|
||||
FindRegion *arg;
|
||||
FindRegion *arg; /* UNUSED */
|
||||
{
|
||||
TileTypeBitMask mask;
|
||||
TileType loctype;
|
||||
@@ -4278,12 +4281,13 @@ extAnnularTileFunc(tile, dinfo, pNum, arg)
|
||||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
extResistorTileFunc(tile, dinfo, pNum, arg)
|
||||
Tile *tile;
|
||||
TileType dinfo;
|
||||
int pNum;
|
||||
FindRegion *arg;
|
||||
FindRegion *arg; /* UNUSED */
|
||||
{
|
||||
TileTypeBitMask mask;
|
||||
TileType loctype;
|
||||
|
||||
Reference in New Issue
Block a user