plow: add ANSI prototypes plowMergeBottom() plowMergeTop()
This exposes the incorrect call sites, that are also fixed here.
This commit is contained in:
parent
aef23fd5f3
commit
b1424bfaf3
|
|
@ -143,6 +143,7 @@ PlowTest(w, cmd)
|
||||||
Plane *plane;
|
Plane *plane;
|
||||||
Edge edge;
|
Edge edge;
|
||||||
Tile *tp;
|
Tile *tp;
|
||||||
|
Tile *delay1 = NULL;
|
||||||
|
|
||||||
if (!ToolGetEditBox(&editArea) || !ToolGetBox(&rootBoxDef, &rootBox))
|
if (!ToolGetEditBox(&editArea) || !ToolGetBox(&rootBoxDef, &rootBox))
|
||||||
return;
|
return;
|
||||||
|
|
@ -341,7 +342,7 @@ PlowTest(w, cmd)
|
||||||
TiToRect(tp, &editArea);
|
TiToRect(tp, &editArea);
|
||||||
TiToRect(RT(tp), &area2);
|
TiToRect(RT(tp), &area2);
|
||||||
(void) GeoInclude(&area2, &editArea);
|
(void) GeoInclude(&area2, &editArea);
|
||||||
plowMergeBottom(tp, plane);
|
plowMergeBottom(&delay1, tp, plane);
|
||||||
DBWAreaChanged(def, &editArea, DBW_ALLWINDOWS, &DBAllButSpaceBits);
|
DBWAreaChanged(def, &editArea, DBW_ALLWINDOWS, &DBAllButSpaceBits);
|
||||||
break;
|
break;
|
||||||
case PC_MERGEUP:
|
case PC_MERGEUP:
|
||||||
|
|
@ -350,7 +351,7 @@ PlowTest(w, cmd)
|
||||||
TiToRect(tp, &editArea);
|
TiToRect(tp, &editArea);
|
||||||
TiToRect(RT(tp), &area2);
|
TiToRect(RT(tp), &area2);
|
||||||
(void) GeoInclude(&area2, &editArea);
|
(void) GeoInclude(&area2, &editArea);
|
||||||
plowMergeTop(tp, plane);
|
plowMergeTop(&delay1, tp, plane);
|
||||||
DBWAreaChanged(def, &editArea, DBW_ALLWINDOWS, &DBAllButSpaceBits);
|
DBWAreaChanged(def, &editArea, DBW_ALLWINDOWS, &DBAllButSpaceBits);
|
||||||
break;
|
break;
|
||||||
case PC_PRINT:
|
case PC_PRINT:
|
||||||
|
|
@ -391,6 +392,7 @@ PlowTest(w, cmd)
|
||||||
plowWhenBot = TRUE;
|
plowWhenBot = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
TiFreeIf(delay1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,8 @@
|
||||||
#define _MAGIC__PLOW__PLOW_H
|
#define _MAGIC__PLOW__PLOW_H
|
||||||
|
|
||||||
#include "utils/magic.h"
|
#include "utils/magic.h"
|
||||||
|
#include "windows/windows.h" /* MagWindow */
|
||||||
|
#include "textio/txcommands.h" /* TxCommand */
|
||||||
|
|
||||||
/* Technology file clients */
|
/* Technology file clients */
|
||||||
extern int PlowTechInit(), PlowTechFinal();
|
extern int PlowTechInit(), PlowTechFinal();
|
||||||
|
|
@ -33,7 +35,7 @@ extern bool PlowDRCLine();
|
||||||
extern bool Plow(CellDef *def, Rect *userRect, const TileTypeBitMask *layersp, int direction);
|
extern bool Plow(CellDef *def, Rect *userRect, const TileTypeBitMask *layersp, int direction);
|
||||||
|
|
||||||
/* Debugging command procedure */
|
/* Debugging command procedure */
|
||||||
extern int PlowTest();
|
extern void PlowTest(MagWindow *w, TxCommand *cmd);
|
||||||
|
|
||||||
extern void PlowExtendJogHorizon();
|
extern void PlowExtendJogHorizon();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -270,8 +270,8 @@ extern int plowSrShadowInitial(int pNum, Rect *area, const TileTypeBitMask *okT
|
||||||
extern bool plowYankMore();
|
extern bool plowYankMore();
|
||||||
extern void PlowRandomTest();
|
extern void PlowRandomTest();
|
||||||
extern void plowDebugInit();
|
extern void plowDebugInit();
|
||||||
extern void plowMergeBottom();
|
extern void plowMergeBottom(Tile **delay1, Tile *tp, Plane *plane); /* for PlowTest.c */
|
||||||
extern void plowMergeTop();
|
extern void plowMergeTop(Tile **delay1, Tile *tp, Plane *plane); /* for PlowTest.c */
|
||||||
extern void plowMoveEdge();
|
extern void plowMoveEdge();
|
||||||
extern int plowShadowInitialRHS();
|
extern int plowShadowInitialRHS();
|
||||||
extern int plowShadowLHS();
|
extern int plowShadowLHS();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue