* src/port.h: added TARGET_Z80_LIKE macro
[fw/sdcc] / as / z80 / assym.c
index 3a9ac0a4c2337e7c10670e4be3d47cd62a76c982..771f5320bffbe4e8ff30ff697773f0b125d1ee19 100644 (file)
 #include <setjmp.h>
 #include <string.h>
 #include <stdlib.h>
-#if defined(__APPLE__) && defined(__MACH__)
-#include <sys/types.h>
-#include <sys/malloc.h>
-#else
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-#endif
 #include "asm.h"
 
 /*)Module      assym.c
@@ -189,7 +181,7 @@ char *id;
        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;
        }
@@ -390,7 +382,7 @@ register char *p1, *p2;
  *     side effects:
  *             none
  */
+
 int
 hash(p)
 register char *p;