aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Cutil.mli
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-01-23 13:33:33 +0100
committerBernhard Schommer <bernhardschommer@gmail.com>2015-01-23 13:33:33 +0100
commitb5b681b7b55abb18165eaa907b04aefb9b0fddde (patch)
tree9c0a7df4b20ede85b54fe5c4e5d326fbf30a0013 /cparser/Cutil.mli
parent12803784f2753863985d1030999469c18e01e0f1 (diff)
parentf00b70b6a17fdfb4e8606df891f6becc8102ef12 (diff)
downloadcompcert-b5b681b7b55abb18165eaa907b04aefb9b0fddde.tar.gz
compcert-b5b681b7b55abb18165eaa907b04aefb9b0fddde.zip
Merge branch 'master' into dwarf
Diffstat (limited to 'cparser/Cutil.mli')
-rw-r--r--cparser/Cutil.mli18
1 files changed, 10 insertions, 8 deletions
diff --git a/cparser/Cutil.mli b/cparser/Cutil.mli
index 53bcfcea..b90dc897 100644
--- a/cparser/Cutil.mli
+++ b/cparser/Cutil.mli
@@ -89,11 +89,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 *)
@@ -156,20 +158,20 @@ val default_argument_conversion : Env.t -> typ -> typ
(* Special types *)
val enum_ikind : ikind
(* Integer kind for enum values. Always [IInt]. *)
-val wchar_ikind : ikind
- (* Integer kind for wchar_t type. Unsigned. *)
-val size_t_ikind : ikind
+val wchar_ikind : unit -> ikind
+ (* Integer kind for wchar_t type. *)
+val size_t_ikind : unit -> ikind
(* Integer kind for size_t type. Unsigned. *)
-val ptr_t_ikind : ikind
+val ptr_t_ikind : unit -> ikind
(* Integer kind for ptr_t type. Smallest unsigned kind large enough
to contain a pointer without information loss. *)
-val ptrdiff_t_ikind : ikind
+val ptrdiff_t_ikind : unit -> ikind
(* Integer kind for ptrdiff_t type. Smallest signed kind large enough
to contain the difference between two pointers. *)
(* Helpers for type-checking *)
-val type_of_constant : Env.t -> constant -> typ
+val type_of_constant : constant -> typ
(* Return the type of the given constant. *)
val type_of_member : Env.t -> field -> typ
(* Return the type of accessing the given field [fld].