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