small fix to consult.

This commit is contained in:
Vítor Santos Costa II 2010-03-03 19:08:59 +00:00
parent 8f41517e24
commit f489118025

View File

@ -172,9 +172,9 @@ consult(Fs) :-
'$consult'(Fs,Module) :-
'$access_yap_flags'(8, 2), % SICStus Prolog compatibility
!,
'$load_files'(Module:Fs,[],Fs).
'$load_files'(Module:Fs,[],consult(Fs)).
'$consult'(Fs, Module) :-
'$load_files'(Module:Fs,[consult(consult)],Fs).
'$load_files'(Module:Fs,[consult(consult)],consult(Fs)).
reconsult(Fs) :-
'$load_files'(Fs, [], reconsult(Fs)).