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

@@ -7,7 +7,7 @@ static OSOpenedDir wilddirref;
static OSSpec wildmatch;
char STSbuf[256];
inline char dummyfunc(int ch) {
CW_INLINE char dummyfunc(int ch) {
return ch;
}

View File

@@ -15,8 +15,7 @@ void OS_AddFileTypeMappingList(OSFileTypeMappings **list, const OSFileTypeMappin
scan = &(*scan)->next;
*scan = malloc(sizeof(OSFileTypeMappings));
#line 40
OPTION_ASSERT(*scan != NULL);
OS_ASSERT(40, *scan != NULL);
(*scan)->mappingList = entry;
(*scan)->next = 0;
}

View File

@@ -94,8 +94,7 @@ static DirNode *FindDirMapEntry(unsigned int dirID) {
row = dirID >> 8;
col = dirID & 0xFF;
#line 166
OPTION_ASSERT(dirID != 2);
OS_ASSERT(166, dirID != 2);
if (row >= dirMapRows)
return 0;
@@ -167,8 +166,7 @@ static int FindOrAdd(const OSPathSpec *path, unsigned int *vRefNum, unsigned int
*vRefNum = vol->vRefNum;
level = &vol->root;
ptr = &pb[1];
#line 267
OPTION_ASSERT(*pb == OS_PATHSEP);
OS_ASSERT(267, *pb == OS_PATHSEP);
while (*ptr) {
st = ptr;

View File

@@ -91,8 +91,7 @@ char *mvprintf(char *mybuf, unsigned int len, const char *format, va_list va) {
int ret;
char *buf;
#line 134
OPTION_ASSERT(mybuf != NULL);
OS_ASSERT(134, mybuf != NULL);
maxlen = len - 1;
buf = mybuf;