@@ -3,23 +3,23 @@ include Blit_intf.Definitions
3
3
4
4
[@@@ warning " -incompatible-with-upstream" ]
5
5
6
- module % template.portable Make1_phantom_distinct
6
+ module % template.portable Make1_phantom2_distinct
7
7
(Src : sig
8
- type ('elt : k, 'phantom ) t
8
+ type ('elt : k, 'p1, 'p2 ) t
9
9
10
- val length : local_ (_ , _ ) t -> int
10
+ val length : local_ (_ , _ , _ ) t -> int
11
11
end )
12
12
(Dst : sig
13
- type ('elt : k, 'phantom ) t
13
+ type ('elt : k, 'p1, 'p2 ) t
14
14
15
- val length : local_ (_ , _ ) t -> int
16
- val create_like : len :int -> local_ ('elt , _ ) Src .t -> ('elt , _ ) t
17
- val unsafe_blit : (('elt , _ ) Src .t , ('elt , _ ) t ) blit
15
+ val length : local_ (_ , _ , _ ) t -> int
16
+ val create_like : len :int -> local_ ('elt , _ , _ ) Src .t -> ('elt , _ , _ ) t
17
+ val unsafe_blit : (('elt , _ , _ ) Src .t , ('elt , _ , _ ) t ) blit
18
18
end ) :
19
- S1_phantom_distinct
19
+ S1_phantom2_distinct
20
20
[@ kind k]
21
- with type ('elt, 'phantom ) src := ('elt, 'phantom ) Src. t
22
- with type ('elt, 'phantom ) dst := ('elt, 'phantom ) Dst. t = struct
21
+ with type ('elt, 'p1, 'p2 ) src := ('elt, 'p1, 'p2 ) Src. t
22
+ with type ('elt, 'p1, 'p2 ) dst := ('elt, 'p1, 'p2 ) Dst. t = struct
23
23
let unsafe_blit = Dst. unsafe_blit
24
24
25
25
let blit ~src ~src_pos ~dst ~dst_pos ~len =
@@ -71,10 +71,10 @@ module%template.portable [@modality p] Make1 (Sequence : Sequence1 [@kind k]) =
71
71
module Seq = struct
72
72
include Sequence
73
73
74
- type ('a : k, _) t = 'a Sequence .t
74
+ type ('a : k, _, _ ) t = 'a Sequence .t
75
75
end
76
76
77
- include Make1_phantom_distinct [@ kind k] [@ modality p] (Seq ) (Seq )
77
+ include Make1_phantom2_distinct [@ kind k] [@ modality p] (Seq ) (Seq )
78
78
end
79
79
[@@ kind k = (value, immediate, immediate64)]
80
80
@@ -87,7 +87,7 @@ module%template.portable
87
87
end ) =
88
88
struct
89
89
module Sequence = struct
90
- type (_, _) t = Sequence .t
90
+ type (_, _, _ ) t = Sequence .t
91
91
92
92
open Sequence
93
93
96
96
let unsafe_blit = unsafe_blit
97
97
end
98
98
99
- include Make1_phantom_distinct [@ modality p] (Sequence ) (Sequence )
99
+ include Make1_phantom2_distinct [@ modality p] (Sequence ) (Sequence )
100
100
end
101
101
102
102
module % template.portable
@@ -108,16 +108,16 @@ module%template.portable
108
108
val create : len :int -> t
109
109
val unsafe_blit : (Src .t , t ) blit
110
110
end ) =
111
- Make1_phantom_distinct [@ modality p]
111
+ Make1_phantom2_distinct [@ modality p]
112
112
(struct
113
- type (_, _) t = Src .t
113
+ type (_, _, _ ) t = Src .t
114
114
115
115
open Src
116
116
117
117
let length = length
118
118
end )
119
119
(struct
120
- type (_, _) t = Dst .t
120
+ type (_, _, _ ) t = Dst .t
121
121
122
122
open Dst
123
123
0 commit comments