summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-01-31 21:32:29 -0500
committerJakob Kaivo <jkk@ung.org>2019-01-31 21:32:29 -0500
commitfd73f471a664e93ab70d20759ca66888972c3f23 (patch)
tree6990d45655455775d5947d0cd311259d51fcd2ba
parent46e585e461574e404d88951cd8d6b36816b8e231 (diff)
propery classify pointers and arrays (and arrays of pointers)
-rw-r--r--mk.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk.sh b/mk.sh
index 1b6703a7..dc027818 100644
--- a/mk.sh
+++ b/mk.sh
@@ -17,7 +17,7 @@ classify_source () {
echo RECORD
elif grep -q "^union.*{" $1; then
echo RECORD
- elif grep -q "^[A-Za-z_].* ${NAME};" $1; then
+ elif grep -q "^[A-Za-z_].*[ \*]${NAME}[[;]" $1; then
echo EXTERN
elif grep -q 'TGFN' $1; then
echo TGFN