]> Repositorios git - scryer-prolog.git/commitdiff
Fix mistake in phrase_to_file/2 definition
authorAdrián Arroyo Calle <[email protected]>
Wed, 17 Nov 2021 07:36:39 +0000 (08:36 +0100)
committerAdrián Arroyo Calle <[email protected]>
Wed, 17 Nov 2021 07:36:39 +0000 (08:36 +0100)
src/lib/pio.pl

index 3b7ba4e1dc467cff165112b39ffc06b5ce5820b9..262e8a5516e0f94562df0cf92ffafa8c61ab499a 100644 (file)
@@ -12,6 +12,7 @@
 :- module(pio, [phrase_from_file/2,
                 phrase_from_file/3,
                 phrase_to_file/2,
+                phrase_to_file/3,
                 phrase_to_stream/2
                ]).
 
@@ -109,7 +110,7 @@ phrase_to_stream(GRBody, Stream) :-
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
 
 phrase_to_file(GRBody, File) :-
-        phrase_to_file(GRBody, File).
+        phrase_to_file(GRBody, File, []).
 
 phrase_to_file(GRBody, File, Options) :-
         setup_call_cleanup(open(File, write, Stream, Options),