1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 02:29:52 +00:00

Avoid C99 idioms.

This commit is contained in:
Oliver Schmidt 2020-11-16 18:07:39 +01:00
parent c2c73e7d06
commit 116682c190

View File

@ -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, ", ");