Remove reposition option from phrase_from_file/2
This commit is contained in:
@@ -63,9 +63,11 @@ phrase_from_file(NT, File, Options) :-
|
|||||||
member(Type, [text,binary])
|
member(Type, [text,binary])
|
||||||
; Type = text
|
; Type = text
|
||||||
),
|
),
|
||||||
setup_call_cleanup(open(File, read, Stream, [reposition(true)|Options]),
|
setup_call_cleanup(
|
||||||
|
open(File, read, Stream, Options),
|
||||||
phrase_from_stream(NT, Stream),
|
phrase_from_stream(NT, Stream),
|
||||||
close(Stream))
|
close(Stream)
|
||||||
|
)
|
||||||
).
|
).
|
||||||
|
|
||||||
% How many chars to read from stream and buffer in each step
|
% How many chars to read from stream and buffer in each step
|
||||||
|
|||||||
Reference in New Issue
Block a user