summary refs log tree commit diff
path: root/tools/check-exports.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/check-exports.sh')
-rwxr-xr-xtools/check-exports.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/check-exports.sh b/tools/check-exports.sh
index da62a74f..b645d379 100755
--- a/tools/check-exports.sh
+++ b/tools/check-exports.sh
@@ -18,9 +18,7 @@ get_syms() {
 }
 
 get_syms_from_def() {
-    # be strict and only parse entries that start with one \t and end with a ';'
-    sed -n 's/^\t\([_a-zA-Z0-9]\+\);$/\1/p' "$1" |
-    grep '^\*$' -v |
+    sed -n 's/^\t\(\([_a-zA-Z0-9]\+\)\|#\s*\([_a-zA-Z0-9]\+@@\?[_a-zA-Z0-9]\+\)\);$/\2\3/p' "$1" |
     sort
 }