* support/cpp2/sdcc.h: x*alloc macro redefinition
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 26 Nov 2006 18:21:29 +0000 (18:21 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 26 Nov 2006 18:21:29 +0000 (18:21 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4487 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
support/cpp2/sdcc.h

index 699dda8f038ab3e0f3cb5a0afc76fb0fabf149a9..b1a62f9d6255523ddf0a97c2d1896f4eeb8fe4f8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,8 @@
-2006-11-25 Borut Razem <borut.razem AT siol.net>
+2006-11-26 Borut Razem <borut.razem AT siol.net>
 
        * support/cpp2/libiberty.h: commented out x*alloc() declarations
          since they are redefined by macros in support/cpp2/sdcc.h
+       * support/cpp2/sdcc.h: x*alloc macro redefinition
 
 2006-11-25 Borut Razem <borut.razem AT siol.net>
 
index 2083f1a4c9bc84c7caa6ce228db6ffc34f5176fe..ec18269db98066c922f828ce249e4c8616849e58 100644 (file)
@@ -1,11 +1,15 @@
 /* Various stuff needed to hack the build for SDCC. */
-#define xmalloc(s) malloc(s)
-#define xstrdup(s) strdup(s)
-#define xrealloc(p,s) realloc(p,s)
-#define xcalloc(n,e) calloc(n,e)
+#define xmalloc   malloc
+#define xstrdup   strdup
+#define xrealloc  realloc
+#define xcalloc   calloc
+
+#define xstrerror strerror
 #define xmalloc_set_program_name(n) /* nada */
-#define xstrerror(e) strerror(e)
 
+/*
+ * From defaults.h
+ */
 /* Define results of standard character escape sequences.  */
 #define TARGET_BELL    007
 #define TARGET_BS      010
@@ -14,7 +18,7 @@
 #define TARGET_VT      013
 #define TARGET_FF      014
 #define TARGET_CR      015
-#  define TARGET_ESC 033
+#define TARGET_ESC     033
 
 #define CHAR_TYPE_SIZE 8
 #define WCHAR_TYPE_SIZE 32     /* ? maybe ? */