---
This isn't 100% accurate... sometimes it's off by a line or two, but it's
still helpful.  I attached a generated sdksyms.c so you can see what it
looks like.

 hw/xfree86/loader/sdksyms.sh |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/hw/xfree86/loader/sdksyms.sh b/hw/xfree86/loader/sdksyms.sh
index 13c5ae5..700879c 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("};");
 
-- 
1.7.0.4

Attachment: sdksyms.c.gz
Description: Binary data

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to