Avoid C99 idioms.
This commit is contained in:
@@ -124,7 +124,8 @@ static struct StrBuf* GetFullTypeNameWestEast (struct StrBuf* West, struct StrBu
|
|||||||
|
|
||||||
/* First argument */
|
/* First argument */
|
||||||
SymEntry* Param = D->SymTab->SymHead;
|
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);
|
CHECK (Param != 0 && (Param->Flags & SC_PARAM) != 0);
|
||||||
if (I > 0) {
|
if (I > 0) {
|
||||||
SB_AppendStr (&ParamList, ", ");
|
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 */
|
/* Get the parameter list string. Start from the first parameter */
|
||||||
SymEntry* Param = D->SymTab->SymHead;
|
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);
|
CHECK (Param != 0 && (Param->Flags & SC_PARAM) != 0);
|
||||||
if (I > 0) {
|
if (I > 0) {
|
||||||
SB_AppendStr (&ParamList, ", ");
|
SB_AppendStr (&ParamList, ", ");
|
||||||
|
|||||||
Reference in New Issue
Block a user