Changeset 4513 for trunk/compiler
- Timestamp:
- 10/18/08 08:58:16 (3 months ago)
- Files:
-
- 1 modified
-
trunk/compiler/logtalk.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/compiler/logtalk.pl
r4512 r4513 258 258 :- dynamic('$lgt_pp_synchronized_'/0). % '$lgt_pp_synchronized_' 259 259 260 :- dynamic('$lgt_pp_file_encoding_'/2). % '$lgt_pp_file_encoding_'(LogtalkEncoding, PrologEncoding))) 261 :- dynamic('$lgt_pp_file_bom_'/1). % '$lgt_pp_file_bom_'(BOM))) 260 :- dynamic('$lgt_pp_file_encoding_'/2). % '$lgt_pp_file_encoding_'(LogtalkEncoding, PrologEncoding) 261 :- dynamic('$lgt_pp_file_bom_'/1). % '$lgt_pp_file_bom_'(BOM) 262 :- dynamic('$lgt_pp_file_name_'/1). % '$lgt_pp_file_name_'(File) 262 263 263 264 :- dynamic('$lgt_pp_file_rclause_'/1). % '$lgt_pp_file_rclause_'(Clause) … … 4560 4561 '$lgt_save_global_op_table', 4561 4562 '$lgt_file_name'(logtalk, File, Source), 4563 asserta('$lgt_pp_file_name_'(Source)), 4562 4564 catch( 4563 4565 open(Source, read, Input), … … 4587 4589 '$lgt_compiler_error_handler'(Output, OutputError)), % with non-ISO compliant Prolog compilers 4588 4590 close(Output), 4591 retractall('$lgt_pp_file_name_'(_)), 4589 4592 '$lgt_restore_global_op_table'. 4590 4593 … … 4657 4660 % adds entity properties related to the entity source file 4658 4661 4659 '$lgt_add_entity_file_properties'(Entity, Input) :-4662 '$lgt_add_entity_file_properties'(Entity, _Input) :- 4660 4663 % ( catch('$lgt_stream_current_line_number'(Input, Line), _, fail) -> 4661 4664 % assertz('$lgt_pp_file_rclause_'('$lgt_entity_property_'(Entity, line_count(Line)))) 4662 4665 % ; true 4663 4666 % ), 4664 ( catch(stream_property(Input, file_name(File)), _, fail) -> 4665 assertz('$lgt_pp_rclause_'('$lgt_entity_property_'(Entity, file(File)))) 4666 ; true 4667 ). 4667 '$lgt_pp_file_name_'(File) -> 4668 assertz('$lgt_pp_rclause_'('$lgt_entity_property_'(Entity, file(File)))). 4668 4669 4669 4670 … … 4911 4912 retractall('$lgt_pp_file_encoding_'(_, _)), 4912 4913 retractall('$lgt_pp_file_bom_'(_)), 4914 retractall('$lgt_pp_file_name_'(_)), 4913 4915 retractall('$lgt_pp_file_rclause_'(_)). 4914 4916
