This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Small improvement: can delete 4 lines with unused "define" macros
- From: Dmitrieva Liubov <liubov dot dmitrieva at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Mon, 12 Sep 2011 20:13:45 +0400
- Subject: PATCH: Small improvement: can delete 4 lines with unused "define" macros
Hello,
We can delete unused "define" macros from test-memcmp.c file.
--
Liubov Dmitrieva
Intel Corporation
Patch:
diff --git a/string/test-memcmp.c b/string/test-memcmp.c
index c7f1574..4675bd9 100644
--- a/string/test-memcmp.c
+++ b/string/test-memcmp.c
@@ -25,21 +25,17 @@
# include <inttypes.h>
# include <wchar.h>
-# define L(str) L##str
# define MEMCMP wmemcmp
# define MEMCPY wmemcpy
# define SIMPLE_MEMCMP simple_wmemcmp
-# define STUPID_MEMCMP stupid_wmemcmp
# define CHAR wchar_t
# define MAX_CHAR 256000
# define UCHAR uint32_t
# define CHARBYTES 4
#else
-# define L(str) str
# define MEMCMP memcmp
# define MEMCPY memcpy
# define SIMPLE_MEMCMP simple_memcmp
-# define STUPID_MEMCMP stupid_memcmp
# define CHAR char
# define MAX_CHAR 255
# define UCHAR unsigned char