fix at_end_of_stream/1 (#479)
This commit is contained in:
@@ -1307,12 +1307,11 @@ stream_property(S, P) :-
|
|||||||
|
|
||||||
at_end_of_stream(S_or_a) :-
|
at_end_of_stream(S_or_a) :-
|
||||||
( atom(S_or_a) ->
|
( atom(S_or_a) ->
|
||||||
stream_property(S, alias(A))
|
stream_property(S, alias(S_or_a))
|
||||||
; S = S_or_a
|
; S = S_or_a
|
||||||
),
|
),
|
||||||
stream_property(S, end_of_stream(E)),
|
stream_property(S, end_of_stream(E)),
|
||||||
!,
|
( E = at -> true ; E = past ).
|
||||||
( E = at ; E = past ).
|
|
||||||
|
|
||||||
at_end_of_stream :-
|
at_end_of_stream :-
|
||||||
current_input(S),
|
current_input(S),
|
||||||
|
|||||||
Reference in New Issue
Block a user