X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=type.sh;h=ab3cfbf20ccf917b05b5169e9b9ac3d99a8599c7;hb=69c32b809237fd0b2881401d6bf5ee25fc7d3032;hp=c59f9d5492301d7787f6fd0074c778818c3a1056;hpb=a28f3abb26a5c077840beb9f2735fceb80e57f39;p=musl-tables diff --git a/type.sh b/type.sh index c59f9d5..ab3cfbf 100755 --- a/type.sh +++ b/type.sh @@ -7,9 +7,9 @@ awk ' BEGIN { # builtin type specifiers/qualifiers.. s = "void char short int long float double signed unsigned _Bool _Complex bool complex" - s = s " static extern auto register inline const volatile restrict" + s = s " static extern auto register inline const volatile restrict __restrict" # typedef names in posix without _t - s = s " FILE DIR VISIT ENTRY ACTION DBM datum fd_set jmp_buf sigjmp_buf va_list nl_item nl_catd" + s = s " FILE DIR VISIT ENTRY ACTION DBM datum fd_set jmp_buf sigjmp_buf va_list __isoc_va_list nl_item nl_catd" s = s " scalar real-floating" # used in macros split(s, a) for (i in a) @@ -19,9 +19,6 @@ BEGIN { split("struct union enum", a) for (i in a) tok[a[i]] = "struct" - - # todo: drop restrict for now - tok["restrict"] = "" } function put(tok) { @@ -60,6 +57,8 @@ function put(tok) { gsub(/\[[0-9]+\]/, "[]", s) gsub(/unsigned int/, "unsigned", s) gsub(/long int/, "long", s) + gsub(/__restrict/, "restrict", s) + gsub(/__isoc_va_list/, "va_list", s) print s }