summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-12 11:03:54 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-12 11:03:54 -0400
commit29a8d956998194efcf39e729d501b000103deeac (patch)
tree92b651f7e1ae9f41228ada033d71519248e19b3e
parent99023629a5a5cbea1774b2bbd35a32be4caec311 (diff)
correctly identify global struct declarations
-rw-r--r--mk.sh2
1 files changed, 1 insertions, 1 deletions
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