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

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

View File

@ -92,6 +92,14 @@ extern int calmaPaintLayerType;
/* External functions from CalmaWrite.c */
extern int calmaWriteInitFunc(CellDef *def);
/* Structure used by calmaWritePaintFuncZ() and others */
typedef struct {
gzFile f; /* Compressed file stream for output */
Rect *area; /* Clipping area, in GDS coordinates */
int type; /* Layer index */
} calmaOutputStructZ;
/* Forward declarations */
extern int calmaWritePaintFuncZ(Tile *tile, calmaOutputStructZ *cos);
extern int calmaMergePaintFuncZ(Tile *tile, calmaOutputStructZ *cos);
@ -107,14 +115,6 @@ extern void calmaOutStringRecordZ(int type, char *str, gzFile f);
extern void calmaOut8Z(char *str, gzFile f);
extern void calmaOutR8Z(double d, gzFile f);
/* Structure used by calmaWritePaintFuncZ() and others */
typedef struct {
gzFile f; /* Compressed file stream for output */
Rect *area; /* Clipping area, in GDS coordinates */
int type; /* Layer index */
} calmaOutputStructZ;
/*--------------------------------------------------------------*/
/* Structures used by the tile merging algorithm */
/*--------------------------------------------------------------*/