plowFindWidthBack() pass by-pointer const TileTypeBitMask* instead of by-value
sizeof(TileTypeBitMask) == 32
This commit is contained in:
parent
2ff6d6113d
commit
cf0f9311ab
|
|
@ -353,7 +353,7 @@ plowProcessJogFunc(edge, area)
|
|||
* all of the LHS of the jog.
|
||||
*/
|
||||
TTMaskSetOnlyType(&mask, edge->e_ltype);
|
||||
width = plowFindWidthBack(&newedge, mask, area, (Rect *) NULL);
|
||||
width = plowFindWidthBack(&newedge, &mask, area, (Rect *) NULL);
|
||||
r.r_xtop = newedge.e_x;
|
||||
r.r_xbot = newedge.e_x - width - 1;
|
||||
r.r_ytop = newedge.e_ytop;
|
||||
|
|
|
|||
|
|
@ -294,7 +294,7 @@ PlowTest(w, cmd)
|
|||
editArea.r_ybot, editArea.r_ytop);
|
||||
saveDef = plowYankDef;
|
||||
plowYankDef = def;
|
||||
(void) plowFindWidthBack(&edge, okTypes, &def->cd_bbox, &editArea);
|
||||
(void) plowFindWidthBack(&edge, &okTypes, &def->cd_bbox, &editArea);
|
||||
plowYankDef = saveDef;
|
||||
GeoTransRect(&EditToRootTransform, &editArea, &rootBox);
|
||||
ToolMoveBox(TOOL_BL, &rootBox.r_ll, FALSE, rootBoxDef);
|
||||
|
|
|
|||
|
|
@ -320,13 +320,12 @@ clipright:
|
|||
*/
|
||||
|
||||
int
|
||||
plowFindWidthBack(edge, types, bbox, prect)
|
||||
Edge *edge; /* Edge along the RHS of this material */
|
||||
TileTypeBitMask types; /* Types whose width is being computed. Note
|
||||
* that this set is passed by value.
|
||||
plowFindWidthBack(
|
||||
Edge *edge, /* Edge along the RHS of this material */
|
||||
const TileTypeBitMask *typesp,/* Types whose width is being computed.
|
||||
*/
|
||||
Rect *bbox; /* Bounding box of the cell */
|
||||
Rect *prect; /* (Debugging only): if this is non-NULL,
|
||||
Rect *bbox, /* Bounding box of the cell */
|
||||
Rect *prect) /* (Debugging only): if this is non-NULL,
|
||||
* the rectangle it points to is filled
|
||||
* in with the rectangle found by this
|
||||
* algorithm to be the largest containing
|
||||
|
|
@ -334,6 +333,7 @@ plowFindWidthBack(edge, types, bbox, prect)
|
|||
* set 'types'.
|
||||
*/
|
||||
{
|
||||
TileTypeBitMask types = *typesp; /* TTMaskCopy(&types, typesp); */
|
||||
Plane *plane = plowYankDef->cd_planes[edge->e_pNum];
|
||||
TileTypeBitMask ctypes;
|
||||
struct wclip wc;
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ extern int plowAtomize();
|
|||
extern void plowCleanupJogs();
|
||||
extern void plowDebugEdge();
|
||||
extern int plowFindWidth(Edge *edge, const TileTypeBitMask *typesp, Rect *bbox, Rect *prect);
|
||||
extern int plowFindWidthBack();
|
||||
extern int plowFindWidthBack(Edge *edge, const TileTypeBitMask *typesp, Rect *bbox, Rect *prect);
|
||||
extern int plowGenRandom();
|
||||
extern void plowQueueDone();
|
||||
extern void plowQueueInit();
|
||||
|
|
|
|||
Loading…
Reference in New Issue