Show
Ignore:
Timestamp:
06/28/08 16:50:20 (5 months ago)
Author:
pmoura
Message:

Updated the SWI-Prolog hook file, "swihook.pl", to avoid hijacking the arguments of use_module/1-2 calls (which resulted in wrongly loading Logtalk libraries with the same name as the SWI-Prolog library modules we intended to load).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/configs/swihook.pl

    r4323 r4329  
    88%  make/0 
    99% 
    10 %  last updated: August 24, 2006 
     10%  last updated: June 29, 2008 
    1111%  
    1212%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
     
    1818 
    1919user:prolog_load_file(_:Spec, Options) :- 
     20    \+ '$lgt_member'(must_be_module(true), Options),    % exclude calls to use_module/1-2 
    2021    (   atom(Spec) -> 
    2122        expand_file_name(Spec, [SpecExp]),