K&R: cif/*.h move function prototypes to the correct file

The data types CIFPath and CIFReadStyle are part of CIFread.h
and all users outside include CIFread.h already.

K&R obsolete syntax removal for C23 compatibility series
This commit is contained in:
Darryl L. Miles 2024-10-04 11:30:04 +01:00 committed by Tim Edwards
parent 4e83c7fcdd
commit f92d9d469f
2 changed files with 9 additions and 6 deletions

View File

@ -338,12 +338,7 @@ extern void CIFCoverageLayer(CellDef *rootDef, Rect *area, char *layer, bool dol
extern bool CIFWriteFlat(CellDef *rootDef, FILE *f);
extern void CIFScalePlanes(int scalen, int scaled, Plane **planearray);
extern void CIFInputRescale(int n, int d);
extern int CIFCalmaLayerToCifLayer(int layer, int datatype, CIFReadStyle *calmaStyle);
extern int CIFScaleCoord(int cifCoord, int snap_type);
extern void CIFPropRecordPath(CellDef *def, CIFPath *pathheadp, bool iswire, char *propname);
extern void CIFPaintWirePath(CIFPath *pathheadp, int width, bool endcap, Plane *plane,
PaintResultType *ptable, PaintUndoInfo *ui);
extern void CIFMakeManhattanPath(CIFPath *pathHead, Plane *plane, PaintResultType *resultTbl, PaintUndoInfo *ui);
extern int cifGrowSliver(Tile *tile, Rect *area);
extern int cifHierElementFunc(CellUse *use, Transform *transform, int x, int y, Rect *checkArea);
extern int cifSquareFunc(Rect *area, CIFOp *op, int *rows, int *columns, Rect *cut);
@ -351,7 +346,6 @@ extern int cifSquareGridFunc(Rect *area, CIFOp *op, int *rows, int *columns, Rec
extern int cifSlotFunc(Rect *area, CIFOp *op, int *numY, int *numX, Rect *cut, bool vertical);
extern int CIFParseScale(char *true_scale, int *expander);
extern int cifParseCalmaNums(char *str, int *numArray, int numNums);
extern int CIFEdgeDirection(CIFPath *first, CIFPath *last);
extern bool CIFReadTechLimitScale(int ns, int ds);
/* Shared variables and structures: */

View File

@ -179,6 +179,15 @@ extern LinkedRect *CIFPolyToRects(CIFPath *path, Plane *plane, PaintResultType *
extern Transform *CIFDirectionToTrans(Point *point);
extern int CIFReadNameToType(char *name, bool newOK);
extern int CIFCalmaLayerToCifLayer(int layer, int datatype, CIFReadStyle *calmaStyle);
extern void CIFPropRecordPath(CellDef *def, CIFPath *pathheadp, bool iswire, char *propname);
extern void CIFPaintWirePath(CIFPath *pathheadp, int width, bool endcap, Plane *plane,
PaintResultType *ptable, PaintUndoInfo *ui);
extern void CIFMakeManhattanPath(CIFPath *pathHead, Plane *plane, PaintResultType *resultTbl, PaintUndoInfo *ui);
extern int CIFEdgeDirection(CIFPath *first, CIFPath *last);
/* Variable argument procedures require complete prototype */
extern void CIFReadError(char *format, ...);