Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
POTTIER Francois
menhir
Commits
92833f0f
Commit
92833f0f
authored
Dec 11, 2014
by
POTTIER Francois
Browse files
Updated [PreFront.read_whole_file].
parent
427ac865
Changes
1
Show whitespace changes
Inline
Side-by-side
src/preFront.ml
View file @
92833f0f
...
...
@@ -21,12 +21,12 @@ let read_whole_file filename =
let
block_size
=
16384
in
let
b
=
Buffer
.
create
block_size
in
let
s
=
String
.
create
block_size
in
let
s
=
Bytes
.
create
block_size
in
let
rec
loop
()
=
let
read
=
input
channel
s
0
block_size
in
if
read
>
0
then
begin
Buffer
.
add_sub
string
b
s
0
read
;
Buffer
.
add_sub
bytes
b
s
0
read
;
loop
()
end
in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment