diff ifndef_wrapper.sh @ 1739:13d834efc376 fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Thu, 15 Oct 2020 19:55:15 +0800
parents 0196f4f83fee
children
line wrap: on
line diff
--- a/ifndef_wrapper.sh	Wed Feb 28 22:11:39 2018 +0800
+++ b/ifndef_wrapper.sh	Thu Oct 15 19:55:15 2020 +0800
@@ -2,6 +2,6 @@
 
 # Wrap all "#define X Y" with a #ifndef X...#endif"
 
-sed -E 's/^( *#define ([^ ]+) .*)/#ifndef \2\
+sed 's/^\( *#define \([^ ][^ ]*\) .*\)/#ifndef \2\
 \1\
 #endif/'