8 ctags -f /tmp/musl.tags -R -n -u --language-force=c --c-kinds=pxdstuv --fields=k --exclude='*.sh' .
10 # fix wchar_t bug of ctags
11 awk '/typedef.* wchar_t/{print "wchar_t\tbits/alltypes.h\t" NR ";\"\tt"}' bits/alltypes.h >>/tmp/musl.tags
14 awk -v inc=$MUSL/include/ '
18 function proto(t,h,n) {
19 cmd = "awk '\''NR==" n
21 cmd = cmd "{s=$0; if(s!~/;/){getline; s=s \" \" $0} print s; exit}"
23 cmd = cmd "{s=$0; while(gsub(/\\\\$/,\"\",s)){getline; s=s $0} print s; exit}"
26 cmd = cmd "'\'' " inc h
39 print $1 "\t" $2 "\t" $4 "\t" $3 "\t" proto($4,$2,$3)
40 }' /tmp/musl.tags |sort >data/musl.tags