fix comments and use of peek in file scanning.
This commit is contained in:
parent
c1f74b7682
commit
47f1499ae0
@ -229,7 +229,6 @@ true :- true.
|
|||||||
% then recover program.
|
% then recover program.
|
||||||
'$startup_reconsult' :-
|
'$startup_reconsult' :-
|
||||||
get_value('$consult_on_boot',X), X \= [], !,
|
get_value('$consult_on_boot',X), X \= [], !,
|
||||||
writeln(consult:X),
|
|
||||||
set_value('$consult_on_boot',[]),
|
set_value('$consult_on_boot',[]),
|
||||||
'$do_startup_reconsult'(X).
|
'$do_startup_reconsult'(X).
|
||||||
'$startup_reconsult'.
|
'$startup_reconsult'.
|
||||||
|
@ -454,7 +454,7 @@ initialization(G,OPT) :-
|
|||||||
( '$access_yap_flags'(15, 0) -> true ; halt).
|
( '$access_yap_flags'(15, 0) -> true ; halt).
|
||||||
|
|
||||||
'$skip_unix_comments'(Stream) :-
|
'$skip_unix_comments'(Stream) :-
|
||||||
peek(Stream, 0'#), !, % 35 is ASCII for '#
|
peek_code(Stream, 0'#), !, % 35 is ASCII for '#
|
||||||
skip(Stream, 10),
|
skip(Stream, 10),
|
||||||
'$skip_unix_comments'(Stream).
|
'$skip_unix_comments'(Stream).
|
||||||
'$skip_unix_comments'(_).
|
'$skip_unix_comments'(_).
|
||||||
|
Reference in New Issue
Block a user