diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2014-12-31 17:14:28 +0100 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2014-12-31 17:14:28 +0100 |
commit | 67b13ecb9cfd2511c1db62a6cc38cf796cfb2a14 (patch) | |
tree | 3024076418ae753f69ddad48ad92959498886efe /cparser/Cutil.mli | |
parent | e89f1e606bc8c9c425628392adc9c69cec666b5e (diff) | |
download | compcert-67b13ecb9cfd2511c1db62a6cc38cf796cfb2a14.tar.gz compcert-67b13ecb9cfd2511c1db62a6cc38cf796cfb2a14.zip |
Add a type system for CompCert C and type-checking constructor functions.
Use these constructor functions in C2C to rely less on the types produced
by the unverified elaborator.
Diffstat (limited to 'cparser/Cutil.mli')
-rw-r--r-- | cparser/Cutil.mli | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cparser/Cutil.mli b/cparser/Cutil.mli index 0de0c827..cc72537d 100644 --- a/cparser/Cutil.mli +++ b/cparser/Cutil.mli @@ -73,11 +73,13 @@ val sizeof : Env.t -> typ -> int option val alignof : Env.t -> typ -> int option (* Return the natural alignment of the given type, in bytes. Machine-dependent. [None] is returned if the type is incomplete. *) -val sizeof_ikind: ikind -> int - (* Return the size of the given integer kind. *) val incomplete_type : Env.t -> typ -> bool (* Return true if the given type is incomplete, e.g. declared but not defined struct or union, or array type without a size. *) +val sizeof_ikind: ikind -> int + (* Return the size of the given integer kind. *) +val is_signed_ikind: ikind -> bool + (* Return true if the given integer kind is signed, false if unsigned. *) (* Computing composite_info records *) |