svn commit: trunk/uClibc: include libpthread/linuxthreads/sysdeps/ etc...

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Sep 26 07:52:32 UTC 2008


On Wed, Sep 24, 2008 at 11:38:21PM -0700, carmelo at uclibc.org wrote:
>Author: carmelo
>Date: 2008-09-24 23:38:21 -0700 (Wed, 24 Sep 2008)
>New Revision: 23478
>
>Log:
>Add globally __stringify macro in libc-symbols.h.
>Remove all other duplicated definitions.
>
>Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>
>
>
>Modified:
>   trunk/uClibc/include/libc-symbols.h
>   trunk/uClibc/libpthread/linuxthreads.old/internals.h
>   trunk/uClibc/libpthread/linuxthreads/sysdeps/pthread/uClibc-glue.h
>   trunk/uClibc/test/unistd/tst-preadwrite.c
>
>
>Changeset:
>Modified: trunk/uClibc/include/libc-symbols.h
>===================================================================
>--- trunk/uClibc/include/libc-symbols.h	2008-09-25 06:13:24 UTC (rev 23477)
>+++ trunk/uClibc/include/libc-symbols.h	2008-09-25 06:38:21 UTC (rev 23478)
>@@ -82,6 +82,12 @@
> # define IS_IN_libc 1
> #endif
> 
>+/* Indirect stringification.  Doing two levels allows
>+ * the parameter to be a macro itself.
>+ */
>+#define __stringify_1(x)    #x
>+#define __stringify(x)      __stringify_1(x)
>+
> #ifdef __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
> # define HAVE_ASM_SET_DIRECTIVE
> #else

Careful with namespace pollution. You're leaking it into the system
now. Luckily this broke the testsuite ;)



More information about the uClibc mailing list