changeset 36671:55f218d04dd3

Remove pointless pair of parentheses. It will detect #define statements having no replacement text without the second pair of parentheses just as well. Thanks to al for spotting it.
author ib
date Fri, 31 Jan 2014 14:06:25 +0000
parents 7d250553d451
children e1e9f2ea17c9
files help/help_check.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/help/help_check.sh	Thu Jan 30 13:26:45 2014 +0000
+++ b/help/help_check.sh	Fri Jan 31 14:06:25 2014 +0000
@@ -16,7 +16,7 @@
 #include "$h"
 void $CHECK () {
 EOF
-  sed -n "s:^[ \t]*#define[ \t]\+\([0-9A-Za-z_]\+\)\(.*\):strdup(\1);:p" "$h" >> ${CHECK}.c
+  sed -n "s:^[ \t]*#define[ \t]\+\([0-9A-Za-z_]\+\).*:strdup(\1);:p" "$h" >> ${CHECK}.c
   echo "}" >> ${CHECK}.c
   $CC -Werror -c -o ${CHECK}.o ${CHECK}.c || exit
 done