summaryrefslogtreecommitdiff
path: root/hw/xfree86/loader/sdksyms.sh
diff options
context:
space:
mode:
authorDavid Barksdale <david.barksdale@adcedosolutions.com>2010-12-13 18:35:20 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-12-18 00:22:30 -0800
commit058b889fde47b4c32534f11ed651bf1749d1dbb2 (patch)
treef440823ec9032af19d332d81cccf18bacc58bc38 /hw/xfree86/loader/sdksyms.sh
parent1324b0ca9f8a7fdaf03b374c75eb3c9df407c2f1 (diff)
Bug 21827: faulty sdksyms.c generated by the awk script in sdksyms.sh
https://bugs.freedesktop.org/show_bug.cgi?id=21827 Tested-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: David Barksdale <david.barksdale@adcedosolutions.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
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_]+$/)