K&R CalmaWrite.c: move typedef to before forward declaration usage

K&R obsolete syntax removal for C23 compatibility series
This commit is contained in:
Darryl L. Miles 2024-10-04 11:40:14 +01:00 committed by Tim Edwards
parent 5f55ab825a
commit d92e2b70b6
1 changed files with 8 additions and 8 deletions

View File

@ -80,6 +80,14 @@ bool CalmaMergeTiles = FALSE; /* If TRUE, merge tiles into polygons in output.
int CalmaCompression = 0; /* Output file compression level (0 = uncompressed) */
#endif
/* Structure used by calmaWritePaintFunc() */
typedef struct {
FILE *f; /* File stream for output */
Rect *area; /* Clipping area, in GDS coordinates */
int type; /* Layer index */
} calmaOutputStruct;
/* Forward declarations */
extern int calmaWriteInitFunc(CellDef *def);
extern int calmaWritePaintFunc(Tile *tile, calmaOutputStruct *cos);
@ -100,14 +108,6 @@ extern void calmaProcessBoundary(BoundaryTop *blist, calmaOutputStruct *cos);
extern void calmaRemoveColinear(BoundaryTop *blist);
extern void calmaRemoveDegenerate(BoundaryTop *blist);
/* Structure used by calmaWritePaintFunc() */
typedef struct {
FILE *f; /* File stream for output */
Rect *area; /* Clipping area, in GDS coordinates */
int type; /* Layer index */
} calmaOutputStruct;
/*--------------------------------------------------------------*/
/* Structures used by the tile merging algorithm */
/*--------------------------------------------------------------*/