This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]