From 29a8d956998194efcf39e729d501b000103deeac Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 12 Aug 2020 11:03:54 -0400 Subject: correctly identify global struct declarations --- mk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mk.sh') diff --git a/mk.sh b/mk.sh index 1fb805dd..d6341e4b 100644 --- a/mk.sh +++ b/mk.sh @@ -17,7 +17,7 @@ classify_source () { echo FNTYPE elif grep -q "^typedef " $1; then echo TYPE - elif grep -q "^struct .*;$" $1; then + elif grep -q "^struct (^ )*;$" $1; then echo TYPE elif grep -q "^typedef .*{$" $1; then echo TYPE_LONG -- cgit v1.2.1