dd680dcbbd8c087eb1a973a915f772584a274373
[fw/sdcc] / support / cpp2 / sdcc.h
1 /* Various stuff needed to hack the build for SDCC. */
2 #define xmalloc(s) malloc(s)
3 #define xstrdup(s) strdup(s)
4 #define xrealloc(p,s) realloc(p,s)
5 #define xcalloc(n,e) calloc(n,e)
6 #define xmalloc_set_program_name(n) /* nada */
7 #define xstrerror(e) strerror(e)
8
9 extern char *lbasename(const char *path);
10
11 /* Define results of standard character escape sequences.  */
12 #define TARGET_BELL     007
13 #define TARGET_BS       010
14 #define TARGET_TAB      011
15 #define TARGET_NEWLINE  012
16 #define TARGET_VT       013
17 #define TARGET_FF       014
18 #define TARGET_CR       015
19
20 #define CHAR_TYPE_SIZE 8
21 #define WCHAR_TYPE_SIZE 32      /* ? maybe ? */
22
23 #define SUPPORTS_ONE_ONLY 0