Changeset 4533 for trunk/compiler

Show
Ignore:
Timestamp:
10/22/08 18:24:27 (3 months ago)
Author:
pmoura
Message:

Updated the Logtalk compiler to provide file information when printing redefined entity warnings if the files of the new and the old definitions are different (requires support for the file/2 entity property).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r4532 r4533  
    42674267        '$lgt_pp_file_rclause_'('$lgt_entity_property_'(Entity, file(NewBase, NewPath))), 
    42684268        (OldPath \== NewPath; OldBase \== NewBase) -> 
    4269         atom_concat(OldPath, OldBase, File) 
     4269        File = OldBase-OldPath 
    42704270    ;   File = nil 
    42714271    ). 
     
    42844284        (   File == nil -> 
    42854285            true 
    4286         ;   write('              loaded from file '), write(File), nl 
     4286        ;   File = Base-Path, 
     4287            write('              loaded from file '), write(Base), write(' ('), write(Path), write(')'), nl 
    42874288        ) 
    42884289    ;   true