Changeset 4534 for trunk/compiler
- Timestamp:
- 10/23/08 04:53:05 (3 months ago)
- Files:
-
- 1 modified
-
trunk/compiler/logtalk.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/compiler/logtalk.pl
r4533 r4534 4233 4233 4234 4234 4235 % '$lgt_check_redefined_entities' (+atom)4235 % '$lgt_check_redefined_entities' 4236 4236 % 4237 4237 % check and print a warning for all entities that are about to be redefined; … … 4252 4252 4253 4253 4254 % '$lgt_redefined_entity'( +atom,@entity_identifier, -atom, -atom)4254 % '$lgt_redefined_entity'(@entity_identifier, -atom, -atom) 4255 4255 % 4256 4256 % true if an entity of the same name is already loaded; returns entity type … … 4264 4264 Type = category 4265 4265 ), 4266 ( '$lgt_entity_property_'(Entity, file(OldBase, OldPath)), 4266 ( % check file information using the file/2 entity property, if available: 4267 '$lgt_entity_property_'(Entity, file(OldBase, OldPath)), 4267 4268 '$lgt_pp_file_rclause_'('$lgt_entity_property_'(Entity, file(NewBase, NewPath))), 4268 4269 (OldPath \== NewPath; OldBase \== NewBase) -> 4269 4270 File = OldBase-OldPath 4270 ; File = nil 4271 ). 4272 4273 4274 4275 % '$lgt_report_redefined_entity'(+atom, @entity_identifier) 4271 ; % either no file/2 entity property or we're reloading the same file 4272 File = nil 4273 ). 4274 4275 4276 4277 % '$lgt_report_redefined_entity'(+atom, @entity_identifier, +atom) 4276 4278 % 4277 4279 % prints a warning for redefined entities … … 4284 4286 ( File == nil -> 4285 4287 true 4286 ; File = Base-Path, 4288 ; % we've conflicting entities coming from different source files: 4289 File = Base-Path, 4287 4290 write(' loaded from file '), write(Base), write(' ('), write(Path), write(')'), nl 4288 4291 )
