Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CodeHawk/CHB/bchlib/bCHBCTypeUtil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,11 @@ let is_float_double t = match t with TFloat (FDouble, _, _) -> true | _ -> false

let is_pointer t = match t with TPtr _ -> true | _ -> false

let is_char_pointer t = match t with TPtr (TInt (IChar, _), _) -> true | _ -> false

let is_void_pointer t = match t with TPtr (TVoid _, _) -> true | _ -> false

let is_scalar t = (is_int t) || (is_float t) || (is_pointer t)
let is_scalar t = (is_int t) || (is_float t) || (is_pointer t) || (is_enum t)

let is_pointer_to_struct t = match t with TPtr (TComp _,_) -> true | _ -> false

Expand Down
1 change: 1 addition & 0 deletions CodeHawk/CHB/bchlib/bCHBCTypeUtil.mli
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ val is_float_float: btype_t -> bool
val is_float_double: btype_t -> bool
val is_scalar: btype_t -> bool
val is_pointer: btype_t -> bool
val is_char_pointer: btype_t -> bool
val is_void_pointer: btype_t -> bool
val is_unsigned: btype_t -> bool (* true if unsigned, false if signed or unknown *)
val is_function_type: btype_t -> bool
Expand Down
Loading
Loading