From 116682c19022ff6d7e314569c62b15cb31fd4215 Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Mon, 16 Nov 2020 18:07:39 +0100 Subject: [PATCH] Avoid C99 idioms. --- src/cc65/datatype.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cc65/datatype.c b/src/cc65/datatype.c index e5e20ac1f..413007a85 100644 --- a/src/cc65/datatype.c +++ b/src/cc65/datatype.c @@ -124,7 +124,8 @@ static struct StrBuf* GetFullTypeNameWestEast (struct StrBuf* West, struct StrBu /* First argument */ SymEntry* Param = D->SymTab->SymHead; - for (unsigned I = 0; I < D->ParamCount; ++I) { + unsigned I; + for (I = 0; I < D->ParamCount; ++I) { CHECK (Param != 0 && (Param->Flags & SC_PARAM) != 0); if (I > 0) { SB_AppendStr (&ParamList, ", "); @@ -602,7 +603,8 @@ void PrintFuncSig (FILE* F, const char* Name, Type* T) /* Get the parameter list string. Start from the first parameter */ SymEntry* Param = D->SymTab->SymHead; - for (unsigned I = 0; I < D->ParamCount; ++I) { + unsigned I; + for (I = 0; I < D->ParamCount; ++I) { CHECK (Param != 0 && (Param->Flags & SC_PARAM) != 0); if (I > 0) { SB_AppendStr (&ParamList, ", ");