Annotation of /trunk/xorg/patches/xorg-server-1.7.7-sdksyms-gcc33-compat.patch
Parent Directory | Revision Log
Revision 1191 -
(hide annotations)
(download)
Thu Nov 18 18:56:55 2010 UTC (13 years, 10 months ago) by niro
File size: 683 byte(s)
Thu Nov 18 18:56:55 2010 UTC (13 years, 10 months ago) by niro
File size: 683 byte(s)
added alx patches for xorg-7.5.0
1 | niro | 1191 | diff --git a/hw/xfree86/loader/sdksyms.sh b/hw/xfree86/loader/sdksyms.sh |
2 | index 6ca368e..881cf22 100755 | ||
3 | --- a/hw/xfree86/loader/sdksyms.sh | ||
4 | +++ b/hw/xfree86/loader/sdksyms.sh | ||
5 | @@ -363,7 +363,7 @@ BEGIN { | ||
6 | # skip modifiers, if any | ||
7 | $n ~ /^\*?(unsigned|const|volatile|struct)$/ || | ||
8 | # skip pointer | ||
9 | - $n ~ /\*$/) | ||
10 | + $n ~ /^[a-zA-Z0-9_]*\*$/) | ||
11 | n++; | ||
12 | |||
13 | # type specifier may not be set, as in | ||
14 | @@ -371,6 +371,10 @@ BEGIN { | ||
15 | if ($n !~ /[^a-zA-Z0-9_]/) | ||
16 | n++; | ||
17 | |||
18 | + # go back if we are at the parameter list already | ||
19 | + if ($n ~ /^[(]([^*].*)?$/) | ||
20 | + n--; | ||
21 | + | ||
22 | # match | ||
23 | # extern _X_EXPORT type (* name[])(...) | ||
24 | if ($n ~ /^[^a-zA-Z0-9_]+$/) |