2011-08-04 Ulrich Drepper <drepper@gmail.com>
+ * string/test-string.h (IMPL): Use __STRING to expand name and then
+ stringify it.
+
* string/test-strcmp.c: Unify most of the WIDE and !WIDE code. Lots
of cleanups.
/* Test and measure string and memory functions.
- Copyright (C) 1999, 2002, 2004, 2008 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2002, 2004, 2008, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Jakub Jelinek <jakub@redhat.com>, 1999.
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#include <sys/cdefs.h>
+
typedef struct
{
const char *name;
#define IMPL(name, test) \
impl_t tst_ ## name \
__attribute__ ((section ("impls"), aligned (sizeof (void *)))) \
- = { #name, (void (*) (void))name, test };
+ = { __STRING (name), (void (*) (void))name, test };
#ifdef TEST_MAIN