diff --git a/hw/xfree86/loader/sdksyms.sh b/hw/xfree86/loader/sdksyms.sh index 13c5ae5f8..700879cb2 100755 --- a/hw/xfree86/loader/sdksyms.sh +++ b/hw/xfree86/loader/sdksyms.sh @@ -345,11 +345,14 @@ BEGIN { if (sdk && $3 ~ /\.h"$/) { # remove quotes gsub(/"/, "", $3); + line = $2; + header = $3; if (! headers[$3]) { printf(" \\\n %s", $3) >> "sdksyms.dep"; headers[$3] = 1; } } + next; } /^extern[ ]/ { @@ -398,10 +401,14 @@ BEGIN { sub(/[^a-zA-Z0-9_].*/, "", symbol); #print; - printf(" (void *) &%s,\n", symbol); + printf(" (void *) &%-50s /* %s:%s */\n", symbol ",", header, line); } } +{ + line++; +} + END { print("};");