TAL Reference Manual
Compiler Directives
TAL Reference Manual—526371-001
16-36
Example of ERRORFILE Directive
FIXERRS Macro
After the compiler logs messages to the error file, you can invoke the TACL FIXERRS
macro and correct the source file. FIXERRS uses the PS Text Edit ANYHOW option to
open the source file in a two-window session. One window displays a diagnostic
message. The other window displays the source code to which the message applies. If
you have write access to the file, you can correct the source code. If you have only
read access, you can view the source code, but you cannot correct it.
Initially, the edit cursor is located in the source code at the first diagnostic. To move the
cursor to the next or previous diagnostic, use the PS Text Edit NEXTERR or
PREVERR command.
The TACL command for invoking FIXERRS is:
error-file
is the name of the error file specified in the ERRORFILE directive.
tedit-cmds
are any PS Text Edit commands that are allowed on the PS Text Edit run line.
The following example issues a TACL DEFINE command that invokes FIXERRS and
defines PS Text Edit function keys for NEXTERR and PREVERR:
[#DEF MYFIXERRS MACRO |BODY|
FIXERRS %1%; SET <F9>, NEXTERR; SET <SF9>, PREVERR]]
Example of ERRORFILE Directive
This example specifies MYERRORS as the file to which the compiler is to report
compilation errors or warnings:
!This is MYSOURCE file
?ERRORFILE myerrors
!Global declarations
VST1619.vsd
;
FIXERRS error-file
tedit-cmds