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>
This commit is contained in:
David Barksdale 2010-12-13 18:35:20 -08:00 committed by Alan Coopersmith
parent 1324b0ca9f
commit 058b889fde

View File

@ -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_]+$/)