aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Cutil.mli
diff options
context:
space:
mode:
Diffstat (limited to 'cparser/Cutil.mli')
-rw-r--r--cparser/Cutil.mli10
1 files changed, 8 insertions, 2 deletions
diff --git a/cparser/Cutil.mli b/cparser/Cutil.mli
index 4e62879b..4eaa9e4a 100644
--- a/cparser/Cutil.mli
+++ b/cparser/Cutil.mli
@@ -128,6 +128,12 @@ val composite_info_def:
Env.t -> struct_or_union -> attributes -> field list -> Env.composite_info
val struct_layout:
Env.t -> field list -> (string * int) list
+val offsetof:
+ Env.t -> typ -> field -> int
+(* Compute the offset of a struct member *)
+val cautious_mul: int64 -> int -> int option
+(* Overflow-avoiding multiplication of an int64 and an int, with
+ result in type int. *)
(* Type classification functions *)
@@ -232,8 +238,8 @@ val field_of_arrow_access: Env.t -> typ -> string -> field
(* Constructors *)
-val intconst : int64 -> ikind -> exp
- (* Build expression for given integer constant. *)
+val intconst : ?hex:bool -> int64 -> ikind -> exp
+ (* Build expression for given integer constant with optional hex string. *)
val floatconst0 : exp
(* Build expression for (double)0. *)
val nullconst : exp