Skip to content

Commit efb71d7

Browse files
committed
fix documentation issues
1 parent 42fd642 commit efb71d7

28 files changed

+135
-123
lines changed

CodeHawk/CH/chlib/cHNumerical.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ val mkNumericalFromInt64 : int64 -> numerical_t
138138
val mkNumericalFromString: string -> numerical_t
139139

140140

141-
(** [mkNumericalPowerOf2 n] returns the numerical for 2^n] *)
141+
(** [mkNumericalPowerOf2 n] returns the numerical for [2^n] *)
142142
val mkNumericalPowerOf2: int -> numerical_t
143143

144144

CodeHawk/CH/chutil/cHPrettyUtil.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ val fixed_length_int_string: string -> int -> string
7070
(** [string_suffix s n] returns the suffix of [s] that starts at the n'th
7171
character of [s] (zero-based).
7272
73-
@raise Invalid_argument if [n] is larger than the length of [s]
73+
raise Invalid_argument if [n] is larger than the length of [s]
7474
*)
7575
val string_suffix: string -> int -> string
7676

CodeHawk/CH/chutil/cHTraceResult.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ type 'a traceresult = ('a, string list) result
3434

3535

3636
(** [tget_ok r] is [v] if [r] is [Ok v] and
37-
@raise [Invalid_argument] otherwise.*)
37+
raise [Invalid_argument] otherwise.*)
3838
val tget_ok: 'a traceresult -> 'a
3939

4040

4141
(** [tget_error r] is [e] if [r] is [Error e] and
42-
@raise [Invalid_argument] otherwise.*)
42+
raise [Invalid_argument] otherwise.*)
4343
val tget_error: 'a traceresult -> string list
4444

4545

CodeHawk/CHB/bchlib/bCHBCTypeUtil.mli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,16 @@ val t_charptr: btype_t
8585
val ptr_deref: btype_t -> btype_t
8686

8787

88-
(** {2 Array types)*)
88+
(** {2 Array types} *)
8989

9090
val t_array: btype_t -> int -> btype_t
9191

9292

93-
(** {2 Type definition}*)
93+
(** {2 Type definition} *)
9494

9595
val t_named: string -> btype_t
9696

97-
(** {2 Composite types}*)
97+
(** {2 Composite types} *)
9898

9999
val t_comp: ?name_space:string list -> string -> btype_t
100100
val t_enum: ?name_space:string list -> string -> btype_t

CodeHawk/CHB/bchlib/bCHBCTypes.mli

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ class type bcfiles_int =
604604

605605
(** [get_varinfo name] returns the varinfo with name [name].
606606
607-
@raise BCH_failure if no varinfo exists with name [name].*)
607+
raise BCH_failure if no varinfo exists with name [name].*)
608608
method get_varinfo: ?prefix:bool -> string -> bvarinfo_t
609609

610610
(** Returns all global varinfos (including functions) *)
@@ -622,7 +622,7 @@ class type bcfiles_int =
622622
(** [get_typedef name] returns the (not necessarily fully expanded) type
623623
definition associated with [name].
624624
625-
@raise BCH_failure if no typedef exists with name [name].
625+
raise BCH_failure if no typedef exists with name [name].
626626
*)
627627
method get_typedef: string -> btype_t
628628

@@ -640,7 +640,7 @@ class type bcfiles_int =
640640
(** [get_compinfo key] returns the compinfo structure associated with
641641
(CIL-assigned) key [key].
642642
643-
@raise BCH_failure if no compinfo definition or declaration exists
643+
raise BCH_failure if no compinfo definition or declaration exists
644644
with key [key].
645645
*)
646646
method get_compinfo: int -> bcompinfo_t
@@ -655,7 +655,7 @@ class type bcfiles_int =
655655

656656
(** [get_enuminfo name] returns the enuminfo structure with name [name].
657657
658-
@raise BCH_failure if no enuminfo definition or declaration exists with
658+
raise BCH_failure if no enuminfo definition or declaration exists with
659659
name [name]
660660
*)
661661
method get_enuminfo: string -> benuminfo_t

CodeHawk/CHB/bchlib/bCHBasicTypes.mli

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ open BCHLibTypes
4040

4141

4242
exception BCH_failure of pretty_t
43+
(** basic exception in all of CHB *)
4344

4445
(* raised in cases an internal inconsistency is encountered *)
4546
exception Internal_error of string

CodeHawk/CHB/bchlib/bCHByteUtilities.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ val rawdata_to_string:
5151

5252

5353
(** [write_xml_raw_data elt s dw] writes byte string [s] to the xml element
54-
[elt] in the form of sub elements with tag {aline} and attributes
55-
{bytes} and {print} that contain 4 space-separated groups of 4 bytes in
54+
[elt] in the form of sub elements with tag [aline] and attributes
55+
[bytes] and [print] that contain 4 space-separated groups of 4 bytes in
5656
hexadecimal and a print represenation of those 16 bytes, respectively.
5757
5858
This format is used in saving binary content of the sections to xml.*)

CodeHawk/CHB/bchlib/bCHCPURegisters.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ val full_registers: cpureg_t list
127127
(** [mk_arm_sp_reg i] returns an ARM single-precision floating point register
128128
(S<i>)
129129
130-
@raise BCH_failure if [i] is negative or i is greater than 31.*)
130+
raise BCHBasicTypes.BCH_failure if [i] is negative or i is greater than 31.*)
131131
val mk_arm_sp_reg: int -> arm_extension_register_t
132132

133133
(** [mk_arm_dp_reg i] returns an ARM double-precision floating point register
134134
(D<i>)
135135
136-
@raise BCH_failure if [i] is negative or i is greater than 15.*)
136+
raise BCH_failure if [i] is negative or i is greater than 15.*)
137137
val mk_arm_dp_reg: int -> arm_extension_register_t
138138

139139

CodeHawk/CHB/bchlib/bCHConstantDefinitions.mli

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ val has_symbolic_address: string -> bool
7676
(** [get_symbolic_address name] returns the address associated with name
7777
[name].
7878
79-
@raise BCH_failure if no address exists with name [name].
79+
raise BCH_failure if no address exists with name [name].
8080
*)
8181
val get_symbolic_address: string -> doubleword_int
8282

@@ -96,20 +96,20 @@ val get_untyped_symbolic_address_names: unit -> string list
9696
val update_symbolic_address_btype: string -> btype_t -> unit
9797

9898
(** [has_symbolic_address_name dw] returns true if the address [dw] is
99-
associated with a name.]*)
99+
associated with a name.*)
100100
val has_symbolic_address_name: doubleword_int -> bool
101101

102102
(** [get_symbolic_address_name dw] returns the name associated with address
103103
[dw].
104104
105-
@raise BCH_failure if no name is associated with address [dw]
105+
raise BCH_failure if no name is associated with address [dw]
106106
*)
107107
val get_symbolic_address_name: doubleword_int -> string
108108

109109
(** [get_symbolic_address_type dw] returns the btype of the symbolic address
110110
associated with address value [dw].
111111
112-
@raise BCH_failure if no symbolic address is associated with address [dw].
112+
raise BCH_failure if no symbolic address is associated with address [dw].
113113
*)
114114
val get_symbolic_address_type: doubleword_int -> btype_t
115115

CodeHawk/CHB/bchlib/bCHDemangler.mli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ open BCHLibTypes
3636

3737

3838
(**
39-
{[
39+
{v
4040
==============================================================================
4141
Grammar
4242
==============================================================================
@@ -164,13 +164,13 @@ open BCHLibTypes
164164
U struct
165165
V class
166166
W enum
167-
]}
167+
v}
168168
169169
currently not supported yet:
170170
- fields
171171
- function pointers
172172
173-
*)
173+
*)
174174

175175
val demangle: string -> string
176176
val has_demangled_name: string -> bool

0 commit comments

Comments
 (0)