a module can start with a digit
[fw/sdcc] / as / mcs51 / lkaomf51.c
index e7933fe962a5afe237a9a6c9819835e7bb1825f4..9cf610e54376e730f7bc5d4170466995f0058c22 100644 (file)
@@ -18,6 +18,7 @@
    Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 -------------------------------------------------------------------------*/
 
+#include <ctype.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
@@ -25,7 +26,7 @@
 
 #define EQ(A,B) !strcmp((A),(B))
 #define MEMSIZE 0x10000
-#define DODUMP 1
+//#define DODUMP 1
 
 typedef struct
 {
@@ -124,7 +125,7 @@ void SaveLinkedFilePath(char * filepath)
 {
        int j;
 
-       if(dflag)
+       if((dflag) && (!rflag))
        {
                infn=realloc(infn, sizeof(_infn)*(numin+1));
 
@@ -947,7 +948,7 @@ int ReadHexFile(int * Begin)
 
 void CreateAOMF51(void)
 {
-       if(dflag)
+       if((dflag) && (!rflag))
        {
                CollectInfoFromCDB();
                #ifdef DODUMP