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>
This commit is contained in:
parent
9ef6241c23
commit
6edbdb7f9e
|
@ -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("};");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user