avoid unnecessary backtracking.

This commit is contained in:
Costa Vitor 2009-08-19 20:23:20 -05:00
parent 84646ee581
commit 6453cf5ae7

View File

@ -109,7 +109,7 @@ filter(StreamInp, StreamOut, Command) :-
(
Line == end_of_file
->
true
!
;
call(Command, Line, NewLine),
format(StreamOut, '~s~n', [NewLine]),
@ -123,7 +123,7 @@ process(StreamInp, Command) :-
(
Line == end_of_file
->
true
!
;
call(Command, Line),
fail