mescc: Tinycc support: remove warnings for foo (void), foo (...).

* module/language/c99/compiler.mes (.name, .type): Expect foo (void), foo (...).
This commit is contained in:
Jan Nieuwenhuizen 2017-07-23 23:40:23 +02:00
parent 4ec2532ad5
commit 31758dd03c

View file

@ -117,6 +117,8 @@
((fctn-defn _ (ftn-declr (ident ,name) _) _) name)
((fctn-defn _ (ptr-declr (pointer) (ftn-declr (ident ,name) _)) _) name)
((fctn-defn _ (ptr-declr (pointer (pointer)) (ftn-declr (ident ,name) _)) _) name)
((ellipsis) #f)
((param-decl (decl-spec-list (type-spec (void)))) #f)
((param-decl _ (param-declr (ident ,name))) name)
((param-decl _ (param-declr (ptr-declr (pointer) (ident ,name)))) name)
((param-decl _ (param-declr (ptr-declr (pointer) (array-of (ident ,name))))) name)
@ -127,6 +129,8 @@
(define (.type o)
(pmatch o
((ellipsis) #f)
((param-decl (decl-spec-list (type-spec (void)))) #f)
((param-decl (decl-spec-list (type-spec ,type)) _) (decl->ast-type type))
((param-decl ,type _) type)
(_