summaryrefslogtreecommitdiff
path: root/hw/xfree86/loader/sdksyms.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/loader/sdksyms.sh')
-rwxr-xr-xhw/xfree86/loader/sdksyms.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/xfree86/loader/sdksyms.sh b/hw/xfree86/loader/sdksyms.sh
index 356d490fa..f60b8ed74 100755
--- a/hw/xfree86/loader/sdksyms.sh
+++ b/hw/xfree86/loader/sdksyms.sh
@@ -359,7 +359,7 @@ BEGIN {
# skip modifiers, if any
$n ~ /^\*?(unsigned|const|volatile|struct)$/ ||
# skip pointer
- $n ~ /\*$/)
+ $n ~ /^[a-zA-Z0-9_]*\*$/)
n++;
# type specifier may not be set, as in
@@ -367,6 +367,10 @@ BEGIN {
if ($n !~ /[^a-zA-Z0-9_]/)
n++;
+ # go back if we are at the parameter list already
+ if ($n ~ /^[(]([^*].*)?$/)
+ n--;
+
# match
# extern _X_EXPORT type (* name[])(...)
if ($n ~ /^[^a-zA-Z0-9_]+$/)