[MPlayer-cvslog] r36767 - trunk/help/help_check.sh

ib subversion at mplayerhq.hu
Fri Jan 31 15:06:25 CET 2014


Author: ib
Date: Fri Jan 31 15:06:25 2014
New Revision: 36767

Log:
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.

Modified:
   trunk/help/help_check.sh

Modified: trunk/help/help_check.sh
==============================================================================
--- trunk/help/help_check.sh	Thu Jan 30 14:26:45 2014	(r36766)
+++ trunk/help/help_check.sh	Fri Jan 31 15:06:25 2014	(r36767)
@@ -16,7 +16,7 @@ for h in "$@"; do
 #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


More information about the MPlayer-cvslog mailing list