HP Pascal/iX Reference Manual (31502-90022)

12- 85
Default 132.
Location Anywhere.
The WIDTH option allows the compiler to ignore text beyond a specified
column.
The WIDTH option applies only to the file that contains it, and not to
files that it includes (see the INCLUDE option). If File1 with width
n
includes File2, the width while File2 is being included is specified by
File2 (if File2 does not contain a WIDTH option, the width defaults to
132.) At the end of File2, the width returns to
n
.
Example
1 2 3 4
1234567890123456789012345678901234567890 <--- Column number guide
$WIDTH 30$
PROGRAM show_width (output); The compiler ignores this text
BEGIN since it is beyond column 30.
writeln('The width is 30');
$INCLUDE 'File2'$
writeln('The width is 30');
END.
File2:
$WIDTH 40$
writeln('The width is 40'); This text (31-40) is not ignored.
$WIDTH 20$
writeln('Hi'); This text (beyond 20) is ignored.
XREF
XREF is an HP Pascal Option.
When the XREF compiler option is ON (and the LIST option is also ON), the
listing includes a cross reference for each function, procedure, and
outer block.
Syntax
$XREF {ON }$
{OFF}
Default OFF.
Location Anywhere.
A cross reference lists each identifier that is accessible to the block.
For each file that references the identifier, the cross reference shows
the file name and gives the numbers of the lines on which the identifier
is referenced. The symbol @ after a line number means that the
identifier is declared on that line. The symbol * after a line number
means that the value of the identifier is (or could be) changed on that
line.
The line numbers are assigned by the editor (if the source file is
numbered) or by the compiler (if the source file is unnumbered.) Lines
from included files (see the INCLUDE option) are numbered independently
(see the second example for the LIST option).
Although the XREF option is legal anywhere in the source code, it affects
only the code that follows it. Therefore, its most practical location is
the beginning of the source code.