From 5c8510355fefa0d77eefc91bdead07d88423e88a Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 31 Jan 2025 16:36:43 +0000 Subject: [PATCH] extract: DBSrCellPlaneArea() cb_database_srcellplanearea_t extContainsCellFunc --- extract/ExtMain.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/extract/ExtMain.c b/extract/ExtMain.c index eac2b5ee..3307034d 100644 --- a/extract/ExtMain.c +++ b/extract/ExtMain.c @@ -806,11 +806,11 @@ extContainsGeometry(def, allButUse, area) Rect *area; { int extContainsPaintFunc(); - bool extContainsCellFunc(); + int extContainsCellFunc(CellUse *use, ClientData cdata); /* cb_database_srcellplanearea_t (const CellUse *allButUse) */ int pNum; if (DBSrCellPlaneArea(def->cd_cellPlane, area, - extContainsCellFunc, (ClientData) allButUse)) + extContainsCellFunc, PTR2CD(allButUse))) return (TRUE); for (pNum = PL_TECHDEPBASE; pNum < DBNumPlanes; pNum++) @@ -824,11 +824,13 @@ extContainsGeometry(def, allButUse, area) /* ------------------------------------------------------------------------- */ -bool -extContainsCellFunc(use, allButUse) - CellUse *use; - CellUse *allButUse; +/** @typedef cb_database_srcellplanearea_t */ +int +extContainsCellFunc( + CellUse *use, + ClientData cdata) { + const CellUse *allButUse = (CellUse *)CD2PTR(cdata); return (use != allButUse) ? TRUE : FALSE; }