aboutsummaryrefslogtreecommitdiffstats
path: root/bin/grepc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/grepc')
-rwxr-xr-xbin/grepc6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/grepc b/bin/grepc
index a069add268..c03cbf2fd2 100755
--- a/bin/grepc
+++ b/bin/grepc
@@ -147,9 +147,9 @@ function grepc_type_typedef_underlying_struct_union_enum()
{
find . -type f \
| grep '\.[ch]$' \
- | xargs grep -hP "^typedef .* *\b$1;" \
- | sed -E -e 's/^typedef //' -e "s/ *\b$1;.*//" \
- | sed -e 's/^struct //' -e 's/^union //' -e 's/^enum //' \
+ | xargs grep -hP "^typedef\s+.*\b$1;" \
+ | sed -E -e 's/^typedef\s+//' -e "s/\s*\**\b$1;.*//" \
+ | sed -E -e 's/^struct\s+//' -e 's/^union\s+//' -e 's/^enum\s+//' \
| while read t; do
grepc_type_struct_union_enum "$t";
done;