Skip to content

Commit 35ee967

Browse files
committed
Revert "copy module instead of include (ocaml/odoc#1162)"
This reverts commit 2fcf6e5.
1 parent 7913415 commit 35ee967

10 files changed

+12
-13
lines changed

src/PatriciaTree.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
(**************************************************************************)
2121

2222
include Ints
23-
module Sigs = Sigs
23+
include Signatures
2424
include Key_value
2525
include Functors
2626
include Nodes

src/PatriciaTree.mli

+5-5
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,18 @@
115115
informative; log(n) corresponds to the real complexity in usual
116116
distributions. *)
117117

118+
(** {1 Integer manipulations} *)
119+
120+
include module type of Ints
121+
118122
(** {1 Signatures} *)
119123

120-
module Sigs = Sigs
124+
include module type of Signatures
121125

122126
(** {1 Functors} *)
123127

124128
include module type of Functors
125129

126-
(** {1 Miscellaneous utilities} *)
127-
128-
include module type of Ints
129-
130130
(** {1 Default KEY and VALUE implementations} *)
131131
(** These can be used as parameters to {!MakeMap}/{!MakeSet} functors in the
132132
most common use cases. *)

src/functors.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
(**************************************************************************)
2121

2222
open Ints
23-
open Sigs
23+
open Signatures
2424
open Key_value
2525
open Nodes
2626

src/functors.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
(* for more details (enclosed in the file LICENSE). *)
2020
(**************************************************************************)
2121

22-
open Sigs
22+
open Signatures
2323

2424
(** This section presents the functors which can be used to build patricia tree
2525
maps and sets. *)

src/key_value.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
(* for more details (enclosed in the file LICENSE). *)
2020
(**************************************************************************)
2121

22-
open Sigs
22+
open Signatures
2323

2424
(** {1 Keys and values} *)
2525

src/key_value.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
(* for more details (enclosed in the file LICENSE). *)
2020
(**************************************************************************)
2121

22-
open Sigs
22+
open Signatures
2323

2424
module Value : VALUE with type 'a t = 'a
2525
(** Default implementation of {!VALUE}, used in {!MakeMap}.

src/nodes.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
(**************************************************************************)
2121

2222
open Ints
23-
open Sigs
23+
open Signatures
2424

2525
let sdbm x y = y + (x lsl 16) + (x lsl 6) - x
2626
(** Combine two numbers into a new hash *)

src/nodes.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
(* for more details (enclosed in the file LICENSE). *)
2020
(**************************************************************************)
2121

22-
open Sigs
22+
open Signatures
2323

2424
(** {1 Basic nodes} *)
2525

File renamed without changes.

src/test/patriciaTreeTest.ml

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
(**************************************************************************)
2121

2222
open PatriciaTree
23-
open Sigs
2423

2524
let check_highest_bit x res =
2625
(* Printf.printf "CHECK_HIGHEST_BIT: %x %x\n%!" x res; *)

0 commit comments

Comments
 (0)