From: Alejandro Colomar Date: Fri, 6 May 2022 00:12:13 +0000 (+0200) Subject: grepc: grepc_type_typedef_underlying_struct_union_enum: Fix corner cases X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b512e0d4837e68fae779e1197f6c768db97ad9a;p=thirdparty%2Fman-pages.git grepc: grepc_type_typedef_underlying_struct_union_enum: Fix corner cases Signed-off-by: Alejandro Colomar --- diff --git a/bin/grepc b/bin/grepc index 1eba43800..a819cc4f5 100755 --- a/bin/grepc +++ b/bin/grepc @@ -109,8 +109,8 @@ function grepc_type_typedef_underlying_struct_union_enum() { find . -type f \ | grep '\.[ch]$' \ - | xargs grep -h "^typedef .* *$1;" \ - | sed -e 's/^typedef //' -e "s/ *$1;.*//" \ + | xargs grep -h "^typedef .* *\b$1;" \ + | sed -e 's/^typedef //' -e "s/ *\b$1;.*//" \ | while read t; do grepc_type_struct_union_enum "$t"; done;