X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=findproblems.sh;fp=findproblems.sh;h=283fcf345232562bb021384a30dce29bb39b6972;hb=8ea425573664bbf0bde1c199537cdff04209d586;hp=f90c1ce39ad406734573a39db87da5d86c25eab1;hpb=6f2ed8f4225b4a5b9aaac145301574ee0af04923;p=musl-tables diff --git a/findproblems.sh b/findproblems.sh index f90c1ce..283fcf3 100755 --- a/findproblems.sh +++ b/findproblems.sh @@ -46,6 +46,10 @@ BEGIN { }' >data/musl.all awk -F'\t' ' +herr && lastid != $1 { + print herr + herr = "" +} $2 == "obj" || $2 == "obj posix" { # not declared if ($1 !~ /^_/) @@ -61,18 +65,29 @@ $2 ~ /inc/ && $5 == "p" { head[$1] = $4 } } -$2 ~ /inc posix/ && $4 != $8 { +$2 ~ /inc posix/ && $4 == $8 { + head[$1] = $4 +} +$2 ~ /inc posix/ && head[$1] != $8 && $4 !~ /^bits\// { # different header n = split($8, a, " ") for (i = 1; i <= n; i++) if ($4 == a[i]) break if (i > n) - print "header\t" $1 "\t" $4 "\t" $8 + # delay error msg + herr = "header\t" $1 "\t" $4 "\t" $8 } $2 ~ /inc posix/ && $7 != $10 && $5 == "p" { # different prototype print "proto\t" $1 "\t" $4 "\t" $7 "\t" $10 "\t" $6 "\t" $9 } +{ + lastid = $1 +} +END{ + if(herr) + print herr +} ' data/musl.all >data/musl.problems