summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk.sh b/mk.sh
index dc027818..5b0d71de 100644
--- a/mk.sh
+++ b/mk.sh
@@ -9,7 +9,9 @@ classify_source () {
echo MACRO
elif grep -q "#undef ${NAME}" $1; then
echo MACRO
- elif grep -q "^typedef.* ${NAME}.*;" $1; then
+ elif grep -q "^typedef .*${NAME}.*;" $1; then
+ echo TYPE
+ elif grep -q "^struct .*;$" $1; then
echo TYPE
elif grep -q "^typedef.*{$" $1; then
echo TYPE_LONG