HP Pascal/iX Reference Manual (31502-90022)
Table Of Contents
- Top of Document
- Preface
- Chapter 1 Introduction
- Chapter 2 Language Elements
- Chapter 3 Data Types
- Chapter 4 Expressions
- Chapter 5 The Declaration Section
- Chapter 6 Statements
- Chapter 7 Program Structure
- Chapter 8 Procedures and Functions
- Chapter 9 Standard Routines
- Chapter 10 Input and Output
- Chapter 11 System Programming Extensions
- Chapter 12 Compiler Options
12- 8
Default Depends upon packing algorithm.
Location After the symbol = in a type definition.
Example
TYPE
Rec = $ALIGNMENT 16$
RECORD
F1 : Integer;
F2 : ShortInt;
F3 : Real;
END;
Integer_ = $ALIGNMENT 2$ Integer;
Ptr = ^Integer_;
ANSI
ANSI is an HP Standard Option.
When the ANSI compiler option is ON, the compiler issues an error
whenever it encounters a feature in the source code that is illegal in
ANSI Standard Pascal. The compiler compiles the illegal feature if
possible; otherwise it is a syntax error. The error appears in the
listing.
The command line option -A also specifies this option.
Syntax
$ANSI {ON }$
{OFF}
Default OFF
Location Anywhere.
The options $ANSI ON$ and $STANDARD_LEVEL 'ANSI'$ are equivalent.
Example
PAGE 1 HEWLETT-PACKARD ... (C) HEWLETT-PACKARD CO. 1986 ...
0 1.000 0 $ANSI ON, OS 'MPEXL'$
0 2.000 0 PROGRAM t;
0 3.000 0