plowSrShadowXxx() callback plowShowShadow() correct return type

was void, now int.
This commit is contained in:
Darryl L. Miles 2025-02-17 10:01:34 +00:00 committed by Tim Edwards
parent 97ff043c1a
commit 554327f1d3
2 changed files with 5 additions and 3 deletions

View File

@ -175,7 +175,7 @@ switch ((o)->o_nextDir) \
* This is similar to an area search, except we call the procedure with
* edges instead of tiles:
*
* (*proc)(edge, cdata)
* int (*proc)(edge, cdata)
* Edge *edge;
* ClientData cdata;
* {

View File

@ -44,7 +44,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
#include "textio/txcommands.h"
/* Forward declarations */
extern void plowShowShadow();
extern int plowShowShadow();
extern int plowShowOutline();
extern void plowTestJog();
extern void plowDebugMore();
@ -485,6 +485,7 @@ plowDebugInit()
*
* Results:
* None.
* Returns zero as per plowSrShadowXxx() callback requirements.
*
* Side effects:
* Leaves feedback.
@ -492,7 +493,7 @@ plowDebugInit()
* ----------------------------------------------------------------------------
*/
void
int
plowShowShadow(edge, def)
Edge *edge;
CellDef *def;
@ -509,6 +510,7 @@ plowShowShadow(edge, def)
edgeArea.r_ybot = edge->e_ybot * scaleFactor;
edgeArea.r_ytop = edge->e_ytop * scaleFactor;
DBWFeedbackAdd(&edgeArea, mesg, def, scaleFactor, STYLE_SOLIDHIGHLIGHTS);
return 0; /* TODO this callback was returning void, but plowSrShadowXxx() uses non-zero for early abort */
}
/*