K&R calma.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:17:39 +01:00 committed by Tim Edwards
parent 5ee3b180d3
commit 40b317979d
1 changed files with 31 additions and 31 deletions

View File

@ -61,42 +61,42 @@ extern bool CalmaAllowAbstract;
#define CALMA_POLYGON_KEEP 2 #define CALMA_POLYGON_KEEP 2
/* Externally-visible procedures: */ /* Externally-visible procedures: */
extern bool CalmaWrite(); extern bool CalmaWrite(CellDef *rootDef, FILE *f);
extern void CalmaReadFile(); extern void CalmaReadFile(FILETYPE file, char *filename);
extern void CalmaTechInit(); extern void CalmaTechInit(void);
extern bool CalmaGenerateArray(); extern bool CalmaGenerateArray(FILE *f, TileType type, int llx, int lly, int pitch, int cols, int rows);
extern void CalmaReadError(char *format, ...); extern void CalmaReadError(char *format, ...);
/* C99 compat */ /* C99 compat */
extern int calmaAddSegment(); extern int calmaAddSegment(LinkedBoundary **lbptr, int poly_edge, int p1x, int p1y, int p2x, int p2y);
extern void calmaDelContacts(); extern void calmaDelContacts(void);
extern void calmaElementBoundary(); extern void calmaElementBoundary(void);
extern void calmaElementBox(); extern void calmaElementBox(void);
extern void calmaElementPath(); extern void calmaElementPath(void);
extern void calmaElementText(); extern void calmaElementText(void);
extern bool calmaIsUseNameDefault(); extern bool calmaIsUseNameDefault(char *defName, char *useName);
extern bool calmaParseStructure(); extern bool calmaParseStructure(char *filename);
extern int calmaProcessDef(); extern int calmaProcessDef(CellDef *def, FILE *outf, bool do_library);
extern int calmaProcessDefZ(); extern int calmaProcessDefZ(CellDef *def, gzFile outf, bool do_library);
extern bool calmaReadI2Record(); extern bool calmaReadI2Record(int type, int *pvalue);
extern bool calmaReadI4Record(); extern bool calmaReadI4Record(int type, int *pvalue);
extern void calmaReadPoint(); extern void calmaReadPoint(Point *p, int iscale);
extern bool calmaReadR8(); extern bool calmaReadR8(double *pd);
extern bool calmaReadStampRecord(); extern bool calmaReadStampRecord(int type, int *stampptr);
extern bool calmaReadStringRecord(); extern bool calmaReadStringRecord(int type, char **str);
extern bool calmaReadStringRecord(); extern bool calmaReadStringRecord(int type, char **str);
extern bool calmaReadTransform(); extern bool calmaReadTransform(Transform *ptrans, char *name);
extern bool calmaSkipBytes(); extern bool calmaSkipBytes(int nbytes);
extern bool calmaSkipExact(); extern bool calmaSkipExact(int type);
extern bool calmaSkipTo(); extern bool calmaSkipTo(int what);
extern void calmaUnexpected(); extern void calmaUnexpected(int wanted, int got);
extern void calmaMergeSegments(); extern void calmaMergeSegments(LinkedBoundary *edge, BoundaryTop **blist, int num_points);
extern void calmaRemoveDegenerate(); extern void calmaRemoveDegenerate(BoundaryTop *blist);
extern void calmaRemoveColinear(); extern void calmaRemoveColinear(BoundaryTop *blist);
#ifdef HAVE_ZLIB #ifdef HAVE_ZLIB
extern bool CalmaWriteZ(); extern bool CalmaWriteZ(CellDef *rootDef, gzFile f);
extern bool CalmaGenerateArrayZ(); extern bool CalmaGenerateArrayZ(gzFile f, TileType type, int llx, int lly, int pitch, int cols, int rows);
#endif #endif
#endif /* _CALMA_H */ #endif /* _CALMA_H */