File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,8 @@ open Prelude
2
2
3
3
let () = assert (Sys. word_size = 64 )
4
4
5
- (* reexport exceptions *)
6
- include (Devkit_ragel : sig
7
- exception Parse_ipv4 of string
8
- exception Parse_compact_duration of string
9
- end )
5
+ (* reexport exception *)
6
+ include (Devkit_ragel : sig exception Parse_ipv4 of string end )
10
7
11
8
type ipv4 = int32
12
9
type ipv4_cidr = int32 * int32
Original file line number Diff line number Diff line change 3
3
type ipv4
4
4
type ipv4_cidr
5
5
6
+ exception Parse_ipv4 of string
7
+
6
8
val ipv4_null : ipv4
7
9
val bytes_of_ipv4 : ipv4 -> int * int * int * int
8
10
val string_of_ipv4 : ipv4 -> string
11
+
12
+ (* * @raise Parse_ipv4 if input is not an IP *)
9
13
val ipv4_of_string_exn : string -> ipv4
14
+
15
+ (* * @return ip 0.0.0.0 when input is not an IP *)
10
16
val ipv4_of_string_null : string -> ipv4
17
+
11
18
val ipv4_of_int32 : int32 -> ipv4
12
19
val int32_of_ipv4 : ipv4 -> int32
13
20
val is_ipv4_slow : string -> bool
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ type t = float
11
11
(* duration in seconds *)
12
12
type duration = float
13
13
14
+ include (Devkit_ragel : sig exception Parse_compact_duration of string end )
15
+
14
16
let compare = Float. compare
15
17
16
18
let get = Unix. gettimeofday
You can’t perform that action at this time.
0 commit comments