18
18
(* Scanning buffers. *)
19
19
module type SCANNING = sig
20
20
21
- type input_channel ;;
21
+ type in_channel ;;
22
22
23
- type scanbuf = input_channel ;;
23
+ type scanbuf = in_channel ;;
24
24
25
- val stdin : input_channel ;;
25
+ val stdin : in_channel ;;
26
26
(* The scanning buffer reading from [Pervasives.stdin].
27
27
[stdib] is equivalent to [Scanning.from_channel Pervasives.stdin]. *)
28
28
29
- val stdib : scanbuf ;;
29
+ val stdib : in_channel ;;
30
30
(* An alias for [Scanf.stdin], the scanning buffer reading from
31
31
[Pervasives.stdin]. *)
32
32
@@ -105,7 +105,7 @@ val name_of_input : scanbuf -> string;;
105
105
source for input buffer [ib]. *)
106
106
107
107
val from_string : string -> scanbuf ;;
108
- val from_channel : in_channel -> scanbuf ;;
108
+ val from_channel : Pervasives . in_channel -> scanbuf ;;
109
109
val from_file : string -> scanbuf ;;
110
110
val from_file_bin : string -> scanbuf ;;
111
111
val from_function : (unit -> char ) -> scanbuf ;;
@@ -118,7 +118,7 @@ module Scanning : SCANNING = struct
118
118
(* The run-time library for scanf. *)
119
119
type file_name = string ;;
120
120
121
- type input_channel = {
121
+ type in_channel = {
122
122
mutable eof : bool ;
123
123
mutable current_char : char ;
124
124
mutable current_char_is_valid : bool ;
@@ -131,7 +131,7 @@ type input_channel = {
131
131
}
132
132
;;
133
133
134
- type scanbuf = input_channel ;;
134
+ type scanbuf = in_channel ;;
135
135
136
136
let null_char = '\000' ;;
137
137
355
355
(* Formatted input functions. *)
356
356
357
357
type ('a, 'b, 'c, 'd) scanner =
358
- ('a , Scanning .scanbuf , 'b , 'c , 'a -> 'd , 'd ) format6 -> 'c
358
+ ('a , Scanning .in_channel , 'b , 'c , 'a -> 'd , 'd ) format6 -> 'c
359
359
;;
360
360
361
361
external string_to_format :
0 commit comments