K&R: CIFint.h conversion to ANSI

K&R obsolete syntax removal for C23 compatibility series
This commit is contained in:
Darryl L. Miles 2024-10-04 11:22:31 +01:00 committed by Tim Edwards
parent b8c3060f3b
commit ca2d6d40dd
1 changed files with 33 additions and 30 deletions

View File

@ -319,37 +319,40 @@ typedef struct cifstyle
/* procedures */ /* procedures */
extern bool CIFNameToMask(); extern bool CIFNameToMask(char *name, TileTypeBitMask *result, TileTypeBitMask *depend);
extern void CIFGenSubcells(); extern void CIFGenSubcells(CellDef *def, Rect *area, Plane **output);
extern void CIFGenArrays(); extern void CIFGenArrays(CellDef *def, Rect *area, Plane **output);
extern void CIFGen(); extern void CIFGen(CellDef *cellDef, CellDef *origDef, Rect *area, Plane **planes, TileTypeBitMask *layers,
extern void CIFClearPlanes(); bool replace, bool genAllPlanes, bool hier, ClientData clientdata);
extern Plane *CIFGenLayer(); extern void CIFClearPlanes(Plane **planes);
extern void CIFInitCells(); extern Plane *CIFGenLayer(CIFOp *op, Rect *area, CellDef *cellDef, CellDef *origDef, Plane *temps[],
extern int cifHierCopyFunc(); bool hier, ClientData clientdata);
extern int cifHierCopyMaskHints(); extern void CIFInitCells(void);
extern void CIFLoadStyle(); extern int cifHierCopyFunc(Tile *tile, TreeContext *cxp);
extern void CIFCopyMaskHints(); extern int cifHierCopyMaskHints(SearchContext *scx, ClientData clientData);
extern void CIFLoadStyle(char *stylename);
extern void CIFCopyMaskHints(SearchContext *scx, CellDef *targetDef);
/* C99 compat */ /* C99 compat */
extern void CIFCoverageLayer(); extern void CIFCoverageLayer(CellDef *rootDef, Rect *area, char *layer, bool dolist);
extern bool CIFWriteFlat(); extern bool CIFWriteFlat(CellDef *rootDef, FILE *f);
extern void CIFScalePlanes(); extern void CIFScalePlanes(int scalen, int scaled, Plane **planearray);
extern void CIFInputRescale(); extern void CIFInputRescale(int n, int d);
extern int CIFCalmaLayerToCifLayer(); extern int CIFCalmaLayerToCifLayer(int layer, int datatype, CIFReadStyle *calmaStyle);
extern int CIFScaleCoord(); extern int CIFScaleCoord(int cifCoord, int snap_type);
extern void CIFPropRecordPath(); extern void CIFPropRecordPath(CellDef *def, CIFPath *pathheadp, bool iswire, char *propname);
extern void CIFPaintWirePath(); extern void CIFPaintWirePath(CIFPath *pathheadp, int width, bool endcap, Plane *plane,
extern void CIFMakeManhattanPath(); PaintResultType *ptable, PaintUndoInfo *ui);
extern int cifGrowSliver(); extern void CIFMakeManhattanPath(CIFPath *pathHead, Plane *plane, PaintResultType *resultTbl, PaintUndoInfo *ui);
extern int cifHierElementFunc(); extern int cifGrowSliver(Tile *tile, Rect *area);
extern int cifSquareFunc(); extern int cifHierElementFunc(CellUse *use, Transform *transform, int x, int y, Rect *checkArea);
extern int cifSquareGridFunc(); extern int cifSquareFunc(Rect *area, CIFOp *op, int *rows, int *columns, Rect *cut);
extern int cifSlotFunc(); extern int cifSquareGridFunc(Rect *area, CIFOp *op, int *rows, int *columns, Rect *cut);
extern int CIFParseScale(); extern int cifSlotFunc(Rect *area, CIFOp *op, int *numY, int *numX, Rect *cut, bool vertical);
extern int cifParseCalmaNums(); extern int CIFParseScale(char *true_scale, int *expander);
extern int CIFEdgeDirection(); extern int cifParseCalmaNums(char *str, int *numArray, int numNums);
extern bool CIFReadTechLimitScale(); extern int CIFEdgeDirection(CIFPath *first, CIFPath *last);
extern bool CIFReadTechLimitScale(int ns, int ds);
/* Shared variables and structures: */ /* Shared variables and structures: */
@ -383,7 +386,7 @@ extern PaintResultType CIFPaintTable[], CIFEraseTable[];
extern int CIFErrorLayer; extern int CIFErrorLayer;
extern CellDef *CIFErrorDef; extern CellDef *CIFErrorDef;
extern void CIFError(); extern void CIFError(Rect *area, char *message);
/* The following determines the tile type used to hold the CIF /* The following determines the tile type used to hold the CIF
* information on its paint plane. * information on its paint plane.