From 5f55ab825a1ff74ff943b8d1f432ae3e91066eed Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 11:38:50 +0100 Subject: [PATCH] K&R CalmaWriteZ.c: move typedef to before forward declaration K&R obsolete syntax removal for C23 compatibility series --- calma/CalmaWriteZ.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/calma/CalmaWriteZ.c b/calma/CalmaWriteZ.c index a202d156..c4feebfc 100644 --- a/calma/CalmaWriteZ.c +++ b/calma/CalmaWriteZ.c @@ -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 */ /*--------------------------------------------------------------*/