HP Pascal/iX Reference Manual (31502-90022)

7- 7
more information.
In order for a procedure in a module to read from input or write to
output (for example, readln from
input
or writeln to
output
), that module
must import the standard modules
stdinput
or
stdoutput
, respectively.
On HP-UX the standard modules
stdinput
,
stdoutput
, and
stderr
are
contained in the predefined library /usr/lib/paslib. On MPE/iX the
standard modules
stdinput
and
stdoutput
are contained in the predefined
library PASLIB.PUB.SYS.
When a program, either directly or indirectly, imports a module that
imports
stdinput
or
stdoutput
, the program must specify
input
or
output
,
respectively, in the program parameter. If a program does not specify
input
or
output
and a module imports the standard modules, the program
will not link.
On HP-UX only, if a program, either directly or indirectly, imports a
module that imports
stderr
, the program must specify
stderr
in the
program parameter. If a program does not specify
stderr
and a module
imports the standard module
stderr
, the program will not link. In
addition, if a procedure in a module writes to
stderr
, that module must
import the standard module,
stderr
.
Syntax
Module_declaration:
Example
This example shows a source file that contains definitions for the
modules bit_types and char_info. MODULE bit_types and MODULE char_info
are compiled into an object file called mod1.o. Note that mod1.o is
referenced in the examples in section "IMPORT" .
MODULE bit_types; { Module declaration }