CIFrdcl.c: bool to int filetype

This direction was chosen due to #define integer use of special values
instead of TRUE/FALSE.  This makes the prototype and use consistent
removing compiler warning from recent K&R removal.
This commit is contained in:
Darryl L. Miles 2024-10-04 11:44:01 +01:00 committed by Tim Edwards
parent 2f7f76bf9c
commit 102f7ad3f2
1 changed files with 6 additions and 6 deletions

View File

@ -594,8 +594,8 @@ cifMaskHintFunc(
*/
int
CIFPaintCurrent(filetype)
bool filetype;
CIFPaintCurrent(
int filetype)
{
extern int cifMakeBoundaryFunc(Tile *tile, ClientData clientdata); /* Forward declaration. */
extern int cifPaintCurrentFunc(Tile *tile, TileType type); /* Forward declaration. */
@ -898,7 +898,7 @@ cifMakeBoundaryFunc(
Rect area;
char propertyvalue[128], *storedvalue;
int savescale;
bool filetype = (bool)clientdata;
int filetype = (int)clientdata;
TiToRect(tile, &area);
area.r_xtop = CIFScaleCoord(area.r_xtop, COORD_EXACT);
@ -1614,8 +1614,8 @@ CIFParseUser(void)
*/
void
CIFReadCellCleanup(filetype)
bool filetype;
CIFReadCellCleanup(
int filetype)
{
HashEntry *h;
HashSearch hs;
@ -1658,7 +1658,7 @@ CIFReadCellCleanup(filetype)
def->cd_flags &= ~CDPROCESSEDGDS;
if ((filetype == FILE_CIF && CIFNoDRCCheck == FALSE) ||
(filetype == 1 && CalmaNoDRCCheck == FALSE))
(filetype == FILE_CALMA && CalmaNoDRCCheck == FALSE))
DRCCheckThis(def, TT_CHECKPAINT, &def->cd_bbox);
DBWAreaChanged(def, &def->cd_bbox, DBW_ALLWINDOWS, &DBAllButSpaceBits);
DBCellSetModified(def, TRUE);