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:
parent
1324b0ca9f
commit
058b889fde
|
@ -359,7 +359,7 @@ BEGIN {
|
||||||
# skip modifiers, if any
|
# skip modifiers, if any
|
||||||
$n ~ /^\*?(unsigned|const|volatile|struct)$/ ||
|
$n ~ /^\*?(unsigned|const|volatile|struct)$/ ||
|
||||||
# skip pointer
|
# skip pointer
|
||||||
$n ~ /\*$/)
|
$n ~ /^[a-zA-Z0-9_]*\*$/)
|
||||||
n++;
|
n++;
|
||||||
|
|
||||||
# type specifier may not be set, as in
|
# type specifier may not be set, as in
|
||||||
|
@ -367,6 +367,10 @@ BEGIN {
|
||||||
if ($n !~ /[^a-zA-Z0-9_]/)
|
if ($n !~ /[^a-zA-Z0-9_]/)
|
||||||
n++;
|
n++;
|
||||||
|
|
||||||
|
# go back if we are at the parameter list already
|
||||||
|
if ($n ~ /^[(]([^*].*)?$/)
|
||||||
|
n--;
|
||||||
|
|
||||||
# match
|
# match
|
||||||
# extern _X_EXPORT type (* name[])(...)
|
# extern _X_EXPORT type (* name[])(...)
|
||||||
if ($n ~ /^[^a-zA-Z0-9_]+$/)
|
if ($n ~ /^[^a-zA-Z0-9_]+$/)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user