mirror of
https://github.com/cc65/cc65.git
synced 2024-06-07 23:29:39 +00:00
Fixed missing calling convention and address size qualifiers in diagnosis on function types.
This commit is contained in:
parent
f734f43a35
commit
0b7d9d8216
|
@ -1454,6 +1454,7 @@ static struct StrBuf* GetFullTypeNameWestEast (struct StrBuf* West, struct StrBu
|
||||||
|
|
||||||
} else if (IsTypeFunc (T)) {
|
} else if (IsTypeFunc (T)) {
|
||||||
|
|
||||||
|
int QualCount = 0;
|
||||||
struct StrBuf ParamList = AUTO_STRBUF_INITIALIZER;
|
struct StrBuf ParamList = AUTO_STRBUF_INITIALIZER;
|
||||||
const FuncDesc* D = GetFuncDesc (T);
|
const FuncDesc* D = GetFuncDesc (T);
|
||||||
|
|
||||||
|
@ -1467,13 +1468,27 @@ static struct StrBuf* GetFullTypeNameWestEast (struct StrBuf* West, struct StrBu
|
||||||
SB_Clear (East);
|
SB_Clear (East);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Add qualifiers */
|
||||||
|
if ((GetQualifier (T) & ~T_QUAL_NEAR) != T_QUAL_NONE) {
|
||||||
|
QualCount = GetQualifierTypeCodeNameBuf (&Buf, T->C, T_QUAL_NEAR);
|
||||||
|
if (QualCount > 0) {
|
||||||
|
SB_AppendChar (&Buf, ' ');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (SB_IsEmpty (West)) {
|
if (SB_IsEmpty (West)) {
|
||||||
/* Just use the param list */
|
/* Use no parentheses */
|
||||||
SB_Printf (West, "(%s)", SB_GetConstBuf (&ParamList));
|
SB_Terminate (&Buf);
|
||||||
|
|
||||||
|
/* Append the param list to the West */
|
||||||
|
SB_Printf (West, "%s(%s)", SB_GetConstBuf (&Buf), SB_GetConstBuf (&ParamList));
|
||||||
} else {
|
} else {
|
||||||
/* Append the param list to the existing West */
|
/* Append the existing West */
|
||||||
SB_Printf (&Buf, "(%s)(%s)", SB_GetConstBuf (West), SB_GetConstBuf (&ParamList));
|
SB_Append (&Buf, West);
|
||||||
SB_Printf (West, "%s", SB_GetConstBuf (&Buf));
|
SB_Terminate (&Buf);
|
||||||
|
|
||||||
|
/* Append the param list to the West */
|
||||||
|
SB_Printf (West, "(%s)(%s)", SB_GetConstBuf (&Buf), SB_GetConstBuf (&ParamList));
|
||||||
}
|
}
|
||||||
SB_Done (&ParamList);
|
SB_Done (&ParamList);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user