projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
[fw/sdcc]
/
src
/
pic
/
device.c
diff --git
a/src/pic/device.c
b/src/pic/device.c
index ecee306eb979b488a0a43bf5a8a5b96d14cd50a8..36c0caf0e70a639aae4bf40fece02bf99661c3f4 100644
(file)
--- a/
src/pic/device.c
+++ b/
src/pic/device.c
@@
-31,14
+31,6
@@
#include "ralloc.h"
#include "device.h"
#include "ralloc.h"
#include "device.h"
-#if defined(__BORLANDC__) || defined(_MSC_VER)
-#define STRCASECMP stricmp
-#define STRNCASECMP strnicmp
-#else
-#define STRCASECMP strcasecmp
-#define STRNCASECMP strncasecmp
-#endif
-
extern int Gstack_base_addr;
extern int Gstack_size;
extern int Gstack_base_addr;
extern int Gstack_size;
@@
-63,8
+55,6
@@
static unsigned int config_word = DEFAULT_CONFIG_WORD;
static unsigned int config2_word = DEFAULT_CONFIG2_WORD;
static memRange *rangeRAM = NULL;
static unsigned int config2_word = DEFAULT_CONFIG2_WORD;
static memRange *rangeRAM = NULL;
-extern void emitSymbolToFile (FILE *of, const char *name, const char *section_type, int size, int addr, int useEQU, int globalize);
-
/* parse a value from the configuration file */
static int parse_config_value(char *str)
/* parse a value from the configuration file */
static int parse_config_value(char *str)
@@
-168,11
+158,10
@@
static void register_map(int num_words, char word[SPLIT_WORDS_MAX][PIC14_STRING_
r->end_address = parse_config_value(word[pcount]);
r->alias = parse_config_value(word[1]);
r->bank = (r->start_address >> 7) & 3;
r->end_address = parse_config_value(word[pcount]);
r->alias = parse_config_value(word[1]);
r->bank = (r->start_address >> 7) & 3;
+ // add memRange to device entry for future lookup (sharebanks)
+ r->next = rangeRAM;
+ rangeRAM = r;
}
}
-
- // add memRange to device entry for future lookup (sharebanks)
- r->next = rangeRAM;
- rangeRAM = r;
}
}