get it to compile with clang

This commit is contained in:
Ash Wolf
2023-01-11 23:26:04 +00:00
parent 0bec4f557a
commit 54bb1363a2
46 changed files with 385 additions and 500 deletions

View File

@@ -1364,7 +1364,7 @@ static Boolean CScope_FindQualifiedTag(CScopeParseResult *result, NameSpace *nsp
return 0;
}
inline void CScope_NSIteratorInit(CScopeNSIterator *iterator, NameSpace *nspace, CScopeParseResult *result) {
CW_INLINE void CScope_NSIteratorInit(CScopeNSIterator *iterator, NameSpace *nspace, CScopeParseResult *result) {
// assumed name
if (nspace->usings) {
iterator->nspace = NULL;
@@ -1376,7 +1376,7 @@ inline void CScope_NSIteratorInit(CScopeNSIterator *iterator, NameSpace *nspace,
iterator->result = result;
}
inline Boolean CScope_NSIteratorNext(CScopeNSIterator *iterator) {
CW_INLINE Boolean CScope_NSIteratorNext(CScopeNSIterator *iterator) {
// assumed name
if (iterator->lookup)
return (iterator->lookup = iterator->lookup->next) != NULL;

View File

@@ -225,7 +225,7 @@ static Boolean CExpr_IsBetterClassConversion(TypeClass *a, TypeClass *b, TypeCla
return 0;
}
inline Boolean Inline_501D40(Type *a, Type *b) {
CW_INLINE Boolean Inline_501D40(Type *a, Type *b) {
return (a == TYPE(&stbool)) && (IS_TYPE_POINTER_ONLY(b) || IS_TYPE_MEMBERPOINTER(b));
}
@@ -430,7 +430,7 @@ typedef enum MysteryEnum {
ME_255 = 255
} MysteryEnum;
inline MysteryEnum Inline_501FF0(UInt32 qual1, UInt32 qual2) {
CW_INLINE MysteryEnum Inline_501FF0(UInt32 qual1, UInt32 qual2) {
if ((qual1 & Q_CV) == (qual2 & Q_CV))
return ME_0;

View File

@@ -386,7 +386,7 @@ static ENode *CInline_FoldConst(ENode *expr) {
}
// unknown name
inline SInt32 CInline_GetLocalID2(Object *object) {
CW_INLINE SInt32 CInline_GetLocalID2(Object *object) {
ObjectList *list;
SInt32 counter;

View File

@@ -204,7 +204,7 @@ static Type *CSOM_FindClassType(HashNameNode *name) {
return type;
}
static inline UInt16 CSOM_GetTokenTableIndex(const Object *object) {
CW_INLINE UInt16 CSOM_GetTokenTableIndex(const Object *object) {
CError_ASSERT(173, IS_TYPE_METHOD(object->type));
return TYPE_METHOD(object->type)->x1E;
}

View File

@@ -47,7 +47,7 @@ static void DiadicOperatorPPC(IAExpr *left, short token, IAExpr *right);
static void InlineAsm_ExpressionPPC(IAExpr *expr, SInt32 value);
static void savepicbase(short reg, HashNameNode *name);
inline SInt32 ExtractValue(CInt64 value) {
CW_INLINE SInt32 ExtractValue(CInt64 value) {
return (SInt32) CInt64_GetULong(&value);
}

View File

@@ -183,7 +183,7 @@ static void MarkArgs(IROLinear *linear) {
}
// assumed name, position
static inline void MarkSubExpr(IROLinear *linear) {
CW_INLINE void MarkSubExpr(IROLinear *linear) {
int i;
switch (linear->type) {

File diff suppressed because it is too large Load Diff

View File

@@ -796,7 +796,7 @@ IROLinear *IRO_TempReference(Object *obj, IROList *list) {
return ind;
}
inline IROLinear *LocateFatherHelper(IROLinear *linear, Boolean a, IROLinear ***b) {
CW_INLINE IROLinear *LocateFatherHelper(IROLinear *linear, Boolean a, IROLinear ***b) {
IROLinear *scan;
SInt32 index;
int i;