configuration: #ifdef CIF_MODULE

Enclosed symbols only seem available with when this ifdef.
This commit is contained in:
Darryl L. Miles 2024-10-02 06:59:00 +01:00 committed by R. Timothy Edwards
parent 22c074537d
commit bfefc7196e
2 changed files with 8 additions and 1 deletions

View File

@ -78,6 +78,7 @@ void bpDumpRect(Rect *r)
fprintf(stderr,"%d", fprintf(stderr,"%d",
r->r_ytop); r->r_ytop);
} }
#ifdef CIF_MODULE
else else
{ {
float oscale; float oscale;
@ -93,6 +94,7 @@ void bpDumpRect(Rect *r)
fprintf(stderr,"%f", fprintf(stderr,"%f",
oscale * (float)r->r_ytop); oscale * (float)r->r_ytop);
} }
#endif
} }
/* /*
@ -170,6 +172,7 @@ static void bpBinArrayDump(BinArray *ba, int indent)
fprintf(stderr,"{dx %d} {dy %d} ", fprintf(stderr,"{dx %d} {dy %d} ",
dx,dy); dx,dy);
} }
#ifdef CIF_MODULE
else else
{ {
float oscale; float oscale;
@ -182,6 +185,7 @@ static void bpBinArrayDump(BinArray *ba, int indent)
fprintf(stderr,"{dy %f} ", fprintf(stderr,"{dy %f} ",
(float)dy * oscale); (float)dy * oscale);
} }
#endif
fprintf(stderr,"{dimX %d} {dimY %d} { bbox ", fprintf(stderr,"{dimX %d} {dimY %d} { bbox ",
dimX, dimX,
dimY); dimY);

View File

@ -1633,7 +1633,10 @@ dbTileScaleFunc(tile, scvals)
if (IsSplit(tile)) if (IsSplit(tile))
type = (SplitSide(tile)) ? SplitRightType(tile) : SplitLeftType(tile); type = (SplitSide(tile)) ? SplitRightType(tile) : SplitLeftType(tile);
DBNMPaintPlane(scvals->ptarget, exact, &targetRect, DBNMPaintPlane(scvals->ptarget, exact, &targetRect,
((scvals->doCIF) ? CIFPaintTable : (
#ifdef CIF_MODULE
(scvals->doCIF) ? CIFPaintTable :
#endif
DBStdPaintTbl(type, scvals->pnum)), DBStdPaintTbl(type, scvals->pnum)),
(PaintUndoInfo *)NULL); (PaintUndoInfo *)NULL);
return 0; return 0;