HP Pascal/HP-UX Release 10.0 uses the following environment
variables somewhat differently than it previously did:
LPATH MANPATH NLSPATH PATH |
HP Pascal/HP-UX Release 10.01 uses a new environment variable
to determine how the runtime library processes floating-point number
string format:
The following sections describe how HP Pascal/HP-UX uses each
variable. Some of these variables may be set appropriately by the
system login routines.
LPATH |
 |
ld uses
the LPATH variable
to locate directories containing libraries. When invoked, pc
looks to see if LPATH
is set. If it is set, ld
reads without modifying LPATH
for the list of directories to search. If LPATH
is not set, pc
sets it according to the -p
compile-line options that were specified on the command line.
As of Release 10.30, LPATH
is set to less directories than previously. If you use LPATH,
you should specify the -v
compile-line option to get a list of the path names to which LPATH
is set.
MANPATH |
 |
To access the manual entry, include the path name /opt/pascal/share/man
in the value of MANPATH.
NLSPATH |
 |
If your application reads or sets NLSPATH,
be aware that the message catalogs for the HP Pascal/HP-UX compiler
and tools have moved from /usr/lib/nls/$LANG
to /opt/pascal/lib/nls/msg/$LANG.
The default message catalogs have moved from /usr/lib/nls/C
to /opt/pascal/lib/nls/msg/C.
PATH |
 |
To invoke pc,
set PATH to include
/opt/pascal/bin.
PASRUNOPTS |
 |
PASRUNOPTS is a new Pascal runtime variable that determines
how the runtime library processes floating-point number string format.
This variable can be used to increase the portability of PASCAL
to other languages and vendors.
The table for this variable (see Table 1-5 “Exponent Values ”) is divided into three columns; currently
only column 1 is supported. The value specified in column 1 determines
what exponent is printed for LONGREAL output. It also selects what
exponent is valid for LONGREAL and REAL input.
Table 1-5 Exponent Values
Value | Exponent Output | Allowable Exponent Input |
|---|
E The
value in column 1 of PASRUNOPTS is E. | E Example
of output is 1.23E+12. | E or D Example
of valid input is 1.23E+12 or 1.23D+12 |
Default The
default situation pertains when PASRUNOPTS is either not defined
or is defined with any value other than E. | L Example
of exponent output is 1.23L+12. | E or L Example
of valid input is 1.23E+12 or 1.23L+12. |
 |
 |  |
 |
 | NOTE: The way the compiler recognizes its constants is not
affected (i.e., only "L" is valid for LONGREAL). |
 |
 |  |
 |
PASRUNOPTS="E"; export PASRUNOPTS program prog(output); begin writeln(1.0L+200) end. |
The output from this example is 1.0E+200.
The variable is only fetched from the environment once, the
first time that it is needed. Changing the environment will not
have an effect on the runtime library.