summaryrefslogtreecommitdiff
path: root/mk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mk.sh')
-rw-r--r--mk.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/mk.sh b/mk.sh
index c30ad16f..04c2e2ce 100644
--- a/mk.sh
+++ b/mk.sh
@@ -5,15 +5,15 @@ classify_source () {
if grep -q "^REFERENCE(" $1; then
echo REFERENCE
- elif grep -q "define ${NAME}[ (]" $1; then
+ elif grep -q "^#define ${NAME}[ (]" $1; then
echo MACRO
- elif grep -q "typedef.* ${NAME}.*;" $1; then
+ elif grep -q "^typedef.* ${NAME}.*;" $1; then
echo TYPE
- elif grep -q "typedef.*{$" $1; then
+ elif grep -q "^typedef.*{$" $1; then
echo TYPE_LONG
- elif grep -q "struct.*{" $1; then
+ elif grep -q "^struct.*{" $1; then
echo STRUCT
- elif grep -q "union.*{" $1; then
+ elif grep -q "^union.*{" $1; then
echo UNION
elif grep -q "^[A-Za-z_].* ${NAME};" $1; then
echo EXTERN