From ef16a51223a4b73eed74c40ce9938248ab6b4b8a Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Fri, 22 May 2015 11:13:23 +0200 Subject: In AST.calling_conventions, record whether the original C function was "old-style" unprototyped. Use this info in printing function types for Csyntax and Clight. --- common/AST.v | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/AST.v b/common/AST.v index 08a19789..387eb6b2 100644 --- a/common/AST.v +++ b/common/AST.v @@ -100,12 +100,13 @@ These signatures are used in particular to determine appropriate calling conventions for the function. *) Record calling_convention : Type := mkcallconv { - cc_vararg: bool; - cc_structret: bool + cc_vararg: bool; (**r variable-arity function *) + cc_unproto: bool; (**r old-style unprototyped function *) + cc_structret: bool (**r function returning a struct *) }. Definition cc_default := - {| cc_vararg := false; cc_structret := false |}. + {| cc_vararg := false; cc_unproto := false; cc_structret := false |}. Record signature : Type := mksignature { sig_args: list typ; -- cgit