From 6edbdb7f9e02ecb069c6fe6c0600fc389553ec5d Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Mon, 23 Aug 2010 11:37:46 -0700 Subject: [PATCH] Tag sdksyms.c entries with source file and line number Signed-off-by: Aaron Plattner Reviewed-by: Adam Jackson Signed-off-by: Keith Packard --- hw/xfree86/loader/sdksyms.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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("};");