summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2010-08-23 11:37:46 -0700
committerKeith Packard <keithp@keithp.com>2010-09-10 11:45:03 -0700
commit6edbdb7f9e02ecb069c6fe6c0600fc389553ec5d (patch)
tree5295db4dac43b683c4684209c2f69d6b4a18d8c1
parent9ef6241c2382bfc555284a4985f6d1e37d750d6f (diff)
Tag sdksyms.c entries with source file and line number
Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com>
-rwxr-xr-xhw/xfree86/loader/sdksyms.sh9
1 files changed, 8 insertions, 1 deletions
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("};");