HP Pascal/iX Reference Manual (31502-90022)

12- 73
STDPASCAL_WARN
STDPASCAL_WARN is an HP Pascal Option.
The STDPASCAL_WARN compiler option allows you to compile and execute
syntax, which otherwise would have been issued an error message due to
non-conformity with the ANSI/ISO standard.
A new error message can now be issued for syntax in HP Pascal that does
not conform to the ANSI/ISO standard. This message may be issued only
when one of the following compiler options is specified: ANSI ON,
STANDARD_LEVEL 'ANSI', or STANDARD_LEVEL 'ISO'. In order to have a
warning issued rather than this error message, specify the compiler
option STDPASCAL_WARN.
Syntax
$STDPASCAL_WARN {ON }$
{OFF}
Location Anywhere.
Default OFF.
Examples
$STANDARD_LEVEL 'ANSI'$
PROGRAM p;
VAR
lr : longreal;
^
**** ERROR #1 THIS FEATURE DOES NOT CONFORM WITH THE ANSI/ISO STANDARD (044)
BEGIN
END.
In this example, an error message is issued because PROGRAM p does not
conform to ANSI/ISO standard Pascal.
$STDPASCAL_WARN ON$
$STANDARD_LEVEL 'ANSI'$
PROGRAM p;
VAR
lr : longreal;
^
**** WARNING # 1 THIS FEATURE REQUIRES $STANDARD_LEVEL 'HP_PASCAL' (539)
BEGIN
END.
In this example, STDPASCAL_WARN is specified so a warning is issued
instead of an error message.
STRINGTEMPLIMIT
STRINGTEMPLIMIT is an HP Pascal Option.
The STRINGTEMPLIMIT option causes all temporary strings of unknown size
to be allocated a fixed maximum size. Instead of being allocated in the
heap, the temporary string is allocated in the stack.
Syntax
$STRINGTEMPLIMIT
integer
$
Parameters
integer
Maximum size in bytes of any string temporary that the
compiler can not calculate at compile time.