projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr, createIval): imple...
[fw/sdcc]
/
as
/
mcs51
/
lklibr.c
diff --git
a/as/mcs51/lklibr.c
b/as/mcs51/lklibr.c
index 2fe35be5729d2ff62a9035198e1a33aa8b2ccfd5..c08b8580d22c4e46274831c27c04088a2b5e3144 100644
(file)
--- a/
as/mcs51/lklibr.c
+++ b/
as/mcs51/lklibr.c
@@
-18,12
+18,6
@@
#define EQ(A,B) !strcmp((A),(B))
#define MAXLINE 254 /*when using fgets*/
#define EQ(A,B) !strcmp((A),(B))
#define MAXLINE 254 /*when using fgets*/
-#if defined(__APPLE__) && defined(__MACH__)
-#include <sys/types.h>
-#include <sys/malloc.h>
-#else
-#include <malloc.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-383,9
+377,6
@@
search()
}
}
}
}
}
}
-#ifdef INDEXLIB
- freelibraryindex();
-#endif
}
/*Load a .rel file embedded in a sdcclib file*/
}
/*Load a .rel file embedded in a sdcclib file*/
@@
-732,8
+723,8
@@
int fndsym( char *name )
_fullpath(absPath1, FirstFound->libspc, PATH_MAX);
_fullpath(absPath2, ThisLibr->libspc, PATH_MAX);
_fullpath(absPath1, FirstFound->libspc, PATH_MAX);
_fullpath(absPath2, ThisLibr->libspc, PATH_MAX);
- for(j=0; absPath1[j]!=0; j++) absPath1[j]=tolower(absPath1[j]);
- for(j=0; absPath2[j]!=0; j++) absPath2[j]=tolower(absPath2[j]);
+ for(j=0; absPath1[j]!=0; j++) absPath1[j]=tolower(
(unsigned char)
absPath1[j]);
+ for(j=0; absPath2[j]!=0; j++) absPath2[j]=tolower(
(unsigned char)
absPath2[j]);
#else
realpath(FirstFound->libspc, absPath1);
realpath(ThisLibr->libspc, absPath2);
#else
realpath(FirstFound->libspc, absPath1);
realpath(ThisLibr->libspc, absPath2);
@@
-1261,6
+1252,9
@@
library()
loadfile_SdccLib(lbfh->libspc, lbfh->relfil, lbfh->offset);
}
}
loadfile_SdccLib(lbfh->libspc, lbfh->relfil, lbfh->offset);
}
}
+#ifdef INDEXLIB
+ freelibraryindex();
+#endif
}
/*)Function VOID loadfile(filspc)
}
/*)Function VOID loadfile(filspc)