svn commit: trunk/uClibc: extra/Configs include

aldot at uclibc.org aldot at uclibc.org
Wed Nov 29 21:12:13 UTC 2006


Author: aldot
Date: 2006-11-29 13:12:13 -0800 (Wed, 29 Nov 2006)
New Revision: 16732

Log:
- introduce UCLIBC_SUSV3_LEGACY_MACROS to be able to do away with all LEGACY
  stuff, even the fallback defines.


Modified:
   trunk/uClibc/extra/Configs/Config.in
   trunk/uClibc/include/string.h


Changeset:
Modified: trunk/uClibc/extra/Configs/Config.in
===================================================================
--- trunk/uClibc/extra/Configs/Config.in	2006-11-29 21:10:04 UTC (rev 16731)
+++ trunk/uClibc/extra/Configs/Config.in	2006-11-29 21:12:13 UTC (rev 16732)
@@ -462,6 +462,14 @@
 	  Currently applies to bcopy/bzero/bcmp/index/rindex.
 	  WARNING! ABI incompatibility.
 
+config UCLIBC_SUSV3_LEGACY_MACROS
+	bool "Enable SuSv3 LEGACY macros"
+	default n
+	help
+	  Enable this option if you want to have SuSv3 LEGACY macros.
+	  Currently applies to bcopy/bzero/bcmp/index/rindex et al.
+	  WARNING! ABI incompatibility.
+
 config UCLIBC_HAS_SHADOW
 	bool "Shadow Password Support"
 	default y

Modified: trunk/uClibc/include/string.h
===================================================================
--- trunk/uClibc/include/string.h	2006-11-29 21:10:04 UTC (rev 16731)
+++ trunk/uClibc/include/string.h	2006-11-29 21:12:13 UTC (rev 16732)
@@ -321,8 +321,9 @@
 extern char *rindex (__const char *__s, int __c)
      __THROW __attribute_pure__ __nonnull ((1));
 # else
+#  ifdef __UCLIBC_SUSV3_LEGACY_MACROS__
 /* bcopy/bzero/bcmp/index/rindex are marked LEGACY in SuSv3.
- * They are replaced as proposed by SuSv3. Don't sync this part 
+ * They are replaced as proposed by SuSv3. Don't sync this part
  * with glibc and keep it in sync with strings.h.  */
 
 #  define bcopy(src,dest,n) (memmove((dest), (src), (n)), (void) 0)
@@ -330,6 +331,7 @@
 #  define bcmp(s1,s2,n) memcmp((s1), (s2), (size_t)(n))
 #  define index(s,c) strchr((s), (c))
 #  define rindex(s,c) strrchr((s), (c))
+#  endif
 # endif
 
 /* Return the position of the first bit set in I, or 0 if none are set.




More information about the uClibc-cvs mailing list