Changeset 4538 for trunk/compiler
- Timestamp:
- 10/25/08 12:02:58 (3 months ago)
- Files:
-
- 1 modified
-
trunk/compiler/logtalk.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/compiler/logtalk.pl
r4537 r4538 5302 5302 '$lgt_ignore_pl_directive'(Dir), % defined in the Prolog config files 5303 5303 !, 5304 ( '$lgt_compiler_flag'(portability, warning) -> 5304 ( '$lgt_compiler_flag'(portability, warning), 5305 '$lgt_compiler_flag'(report, on) -> 5306 '$lgt_inc_compile_warnings_counter', 5305 5307 nl, write('% WARNING! Ignoring Prolog directive: '), writeq(Dir), 5306 5308 nl, '$lgt_report_compiler_error_line_number'(Line, Input) … … 5309 5311 5310 5312 '$lgt_tr_directive'(Dir, Line, Input, _) :- 5311 '$lgt_rewrite_and_copy_pl_directive'(Dir, RWDir), % defined in the Prolog config files5313 '$lgt_rewrite_and_copy_pl_directive'(Dir, RWDir), % defined in the Prolog config files 5312 5314 assertz('$lgt_pp_directive_'(RWDir)), 5313 5315 !, 5314 ( '$lgt_compiler_flag'(portability, warning) -> 5315 nl, write('% WARNING! Rewriting Prolog directive: '), writeq(Dir), 5316 nl, write('% Copying resulting Prolog directive: '), writeq(RWDir), 5316 ( '$lgt_compiler_flag'(portability, warning), 5317 '$lgt_compiler_flag'(report, on) -> 5318 '$lgt_inc_compile_warnings_counter', 5319 nl, write('% WARNING! Rewriting and copying Prolog directive: '), writeq(Dir), 5317 5320 nl, '$lgt_report_compiler_error_line_number'(Line, Input) 5318 5321 ; true … … 5322 5325 '$lgt_rewrite_and_recompile_pl_directive'(Dir, RWDir), % defined in the Prolog config files 5323 5326 !, 5324 ( '$lgt_compiler_flag'(portability, warning) -> 5325 nl, write('% WARNING! Rewriting Prolog directive: '), writeq(Dir), 5326 nl, write('% Recompiling resulting Prolog directive: '), writeq(RWDir), 5327 ( '$lgt_compiler_flag'(portability, warning), 5328 '$lgt_compiler_flag'(report, on) -> 5329 '$lgt_inc_compile_warnings_counter', 5330 nl, write('% WARNING! Rewriting and recompiling Prolog directive: '), writeq(Dir), 5327 5331 nl, '$lgt_report_compiler_error_line_number'(Line, Input) 5328 5332 ; true 5329 5333 ), 5330 '$lgt_tr_directive'(RWDir, Line, Input, Output). % try to translate the rewritten directive5334 '$lgt_tr_directive'(RWDir, Line, Input, Output). % try to translate the rewritten directive 5331 5335 5332 5336 '$lgt_tr_directive'(Dir, _, _, _) :- … … 10677 10681 '$lgt_report_non_portable_calls' :- 10678 10682 '$lgt_compiler_flag'(portability, warning), 10683 '$lgt_compiler_flag'(report, on), 10679 10684 setof(Pred, '$lgt_non_portable_call'(Pred), Preds), 10680 10685 '$lgt_inc_compile_warnings_counter', … … 10706 10711 '$lgt_report_non_portable_functions' :- 10707 10712 '$lgt_compiler_flag'(portability, warning), 10713 '$lgt_compiler_flag'(report, on), 10708 10714 setof(Functor/Arity, '$lgt_non_portable_function_'(Functor, Arity), Functions), 10709 10715 '$lgt_inc_compile_warnings_counter',
