mirror of
https://github.com/cc65/cc65.git
synced 2025-01-13 09:31:53 +00:00
Avoid C99 idioms.
This commit is contained in:
parent
c2c73e7d06
commit
116682c190
@ -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, ", ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user