projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4560 4a8a32a2...
[fw/sdcc]
/
as
/
z80
/
assym.c
diff --git
a/as/z80/assym.c
b/as/z80/assym.c
index db88a08afbd0def5d614c29fe381662a1649988b..771f5320bffbe4e8ff30ff697773f0b125d1ee19 100644
(file)
--- a/
as/z80/assym.c
+++ b/
as/z80/assym.c
@@
-12,12
+12,7
@@
#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>
-#endif
+#include <stdlib.h>
#include "asm.h"
/*)Module assym.c
#include "asm.h"
/*)Module assym.c
@@
-186,7
+181,7
@@
char *id;
h = hash(id);
mp = mnehash[h];
while (mp) {
h = hash(id);
mp = mnehash[h];
while (mp) {
- if (
symeq(id, mp->m_id))
+ if (
as_strcmpi(id, mp->m_id) == 0) /* JLH: case insensitive */
return (mp);
mp = mp->m_mp;
}
return (mp);
mp = mp->m_mp;
}
@@
-387,7
+382,7
@@
register char *p1, *p2;
* side effects:
* none
*/
* side effects:
* none
*/
-
+
int
hash(p)
register char *p;
int
hash(p)
register char *p;