projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update
[fw/sdcc]
/
as
/
z80
/
assym.c
diff --git
a/as/z80/assym.c
b/as/z80/assym.c
index 3285265f813665a52cde841150f9795cb5e3ee4b..db88a08afbd0def5d614c29fe381662a1649988b 100644
(file)
--- a/
as/z80/assym.c
+++ b/
as/z80/assym.c
@@
-12,14
+12,12
@@
#include <stdio.h>
#include <setjmp.h>
#include <string.h>
#include <stdio.h>
#include <setjmp.h>
#include <string.h>
+#if defined(__APPLE__) && defined(__MACH__)
+#include <sys/types.h>
+#include <sys/malloc.h>
+#else
#include <malloc.h>
#include <malloc.h>
-
-//#if defined(_MSC_VER)
-//#include <malloc.h>
-//#else
-//#include <alloc.h>
-//#endif
-
+#endif
#include "asm.h"
/*)Module assym.c
#include "asm.h"
/*)Module assym.c
@@
-360,7
+358,7
@@
register char *p1, *p2;
if (*p1++ != *p2++)
return (0);
#else
if (*p1++ != *p2++)
return (0);
#else
- if (ccase[
*p1++] != ccase[*p2++
])
+ if (ccase[
(unsigned char)(*p1++)] != ccase[(unsigned char)(*p2++)
])
return (0);
#endif
return (0);
#endif
@@
-403,7
+401,7
@@
register char *p;
#if CASE_SENSITIVE
h += *p++;
#else
#if CASE_SENSITIVE
h += *p++;
#else
- h += ccase[
*p++
];
+ h += ccase[
(unsigned char)(*p++)
];
#endif
} while (--n);
#endif
} while (--n);