fix comments and use of peek in file scanning.

This commit is contained in:
Vitor Santos Costa 2011-05-12 22:34:44 +01:00
parent c1f74b7682
commit 47f1499ae0
2 changed files with 1 additions and 2 deletions

View File

@ -229,7 +229,6 @@ true :- true.
% then recover program.
'$startup_reconsult' :-
get_value('$consult_on_boot',X), X \= [], !,
writeln(consult:X),
set_value('$consult_on_boot',[]),
'$do_startup_reconsult'(X).
'$startup_reconsult'.

View File

@ -454,7 +454,7 @@ initialization(G,OPT) :-
( '$access_yap_flags'(15, 0) -> true ; halt).
'$skip_unix_comments'(Stream) :-
peek(Stream, 0'#), !, % 35 is ASCII for '#
peek_code(Stream, 0'#), !, % 35 is ASCII for '#
skip(Stream, 10),
'$skip_unix_comments'(Stream).
'$skip_unix_comments'(_).