extract: DBSrCellPlaneArea() cb_database_srcellplanearea_t extContainsCellFunc
This commit is contained in:
parent
5b03081d03
commit
5c8510355f
|
|
@ -806,11 +806,11 @@ extContainsGeometry(def, allButUse, area)
|
||||||
Rect *area;
|
Rect *area;
|
||||||
{
|
{
|
||||||
int extContainsPaintFunc();
|
int extContainsPaintFunc();
|
||||||
bool extContainsCellFunc();
|
int extContainsCellFunc(CellUse *use, ClientData cdata); /* cb_database_srcellplanearea_t (const CellUse *allButUse) */
|
||||||
int pNum;
|
int pNum;
|
||||||
|
|
||||||
if (DBSrCellPlaneArea(def->cd_cellPlane, area,
|
if (DBSrCellPlaneArea(def->cd_cellPlane, area,
|
||||||
extContainsCellFunc, (ClientData) allButUse))
|
extContainsCellFunc, PTR2CD(allButUse)))
|
||||||
return (TRUE);
|
return (TRUE);
|
||||||
|
|
||||||
for (pNum = PL_TECHDEPBASE; pNum < DBNumPlanes; pNum++)
|
for (pNum = PL_TECHDEPBASE; pNum < DBNumPlanes; pNum++)
|
||||||
|
|
@ -824,11 +824,13 @@ extContainsGeometry(def, allButUse, area)
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
bool
|
/** @typedef cb_database_srcellplanearea_t */
|
||||||
extContainsCellFunc(use, allButUse)
|
int
|
||||||
CellUse *use;
|
extContainsCellFunc(
|
||||||
CellUse *allButUse;
|
CellUse *use,
|
||||||
|
ClientData cdata)
|
||||||
{
|
{
|
||||||
|
const CellUse *allButUse = (CellUse *)CD2PTR(cdata);
|
||||||
return (use != allButUse) ? TRUE : FALSE;
|
return (use != allButUse) ? TRUE : FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue