X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=tab_c99.sh;h=32ba6b61795782be7d601cdf3d4a2c532bbd3db0;hb=8ea425573664bbf0bde1c199537cdff04209d586;hp=80001c276b4b2eac539dd9428408ad421fd433c2;hpb=a4341ee7277caff8b3334c87541f6d093d225b86;p=musl-tables
diff --git a/tab_c99.sh b/tab_c99.sh
index 80001c2..32ba6b6 100755
--- a/tab_c99.sh
+++ b/tab_c99.sh
@@ -1,7 +1,7 @@
#!/bin/sh
export LC_ALL=C
-MUSL=../musl
+MUSL=${MUSL:-../musl}
( cd $MUSL; git log -n1 ) | awk '
BEGIN {
@@ -25,7 +25,7 @@ BEGIN {
if ($2 ~ /bits\//)
s = $3 " "
else
- s = "" $3 " "
+ s = "" $3 " "
kind[$1] = kind[$1] $3
kindstr[$1] = kindstr[$1] s
}
@@ -36,17 +36,10 @@ BEGIN {
legend = legend "
nodecl - symbol is in libc.a but not declared in a public header"
legend = legend "missing - neither in include files (see decl) nor in libc.a (see sym)"
legend = legend "sym: external symbol kind as found by `nm libc.a` (symbol kind only reported once)"
-# legend = legend "- A - symbol value is absolute"
-# legend = legend "
- B - symbol is in the uninitialized data section (known as BSS)"
legend = legend "
- C - symbol is common (uninitialized data)"
legend = legend "
- D - symbol is in the initialized data section"
-# legend = legend "
- G - symbol is in the initialized data section for small objects"
-# legend = legend "
- I - indirect reference to another symbol"
-# legend = legend "
- N - debugging symbol"
legend = legend "
- R - symbol is in the read only data section"
-# legend = legend "
- S - symbol is in the uninitialized data section for small objects"
legend = legend "
- T - symbol is in the text section"
-# legend = legend "
- U - undefined symbol"
legend = legend "
- V - weak object"
legend = legend "
- W - weak symbol"
legend = legend "
decl: kind of declaration as found by `ctags -R include` (every occurance is reported, arch specific definitions are not linked)