prototype check cleanups
[musl-tables] / type.sh
diff --git a/type.sh b/type.sh
index 3aa5a9c..2050e4b 100755 (executable)
--- a/type.sh
+++ b/type.sh
@@ -75,6 +75,14 @@ function put(tok) {
                                state = "type"
                }
        }
+
+       # fixes
+       gsub(/restrict const/, "const", s)
+       gsub(/restrict/, "", s)
+       gsub(/\[[0-9]+\]/, "[]", s)
+       gsub(/unsigned int/, "unsigned", s)
+       gsub(/long int/, "long", s)
+
        print s
 }
 '