| United States-English |
|
|
|
![]() |
HP Pascal/HP-UX Programmer's Guide > Chapter 4 Predefined Pascal Constants, Data Types, and ModulesPredefined Modules |
|
On both the MPE/iX and HP-UX operating systems, HP Pascal has these predefined modules:
On the HP-UX operating system only, HP Pascal has these additional predefined modules:
In its import declaration section, your program can import any or all of the predefined modules supported by the operating system on which it runs. This section shows the actual declarations in the predefined modules for your information only. Do not include these declarations in your program. Instead, import the predefined modules as shown on the following page. The stdinput module contains the declaration for the predefined global variable (standard textfile) input. It allows an independent module (which has no program header) to use input. Importing the stdinput module into an independent module is the same as declaring input in the program header of a program. The content of the predefined module stdinput is:
The stdoutput module contains the declaration for the predefined global variable (standard textfile) output. It allows an independent module (which has no program header) to use output. Importing the stdoutput module into an independent module is the same as declaring output in the program header of a program. The content of the predefined module stdoutput is:
The stdrrr module contains the declaration for the predefined global variable (standard textfile) stderr. It allows an independent module (which has no program header) to use stderr. Importing the stderr module into an independent module is the same as declaring stderr in the program header of a program. The content of the predefined module stderr is:
The predefined module stderr is only available on the HP-UX operating system. The main use of stdinput, stdoutput, and stderr is to allow a module to perform a read or write operation to either standard input files, standard output files, or, on HP-UX, standard error files. The module must import the corresponding stdinput, stdoutput, or stderror modules, and the program must have input, output, or stderr in the program header. A main program does not need to import these standard modules, but the corresponding program parameter must be present in the program header. The following example shows a program importing a module that imports stdinput, stdoutput, and, on HP-UX, stderr.
The program below shows how module A is imported. It is compiled into file A.o. The program parameters input, output, and stderr must be present since module A imports them. arg and pas_hp1000 do not need to be present if they are imported.
The arg module contains routines that access HP-UX command line arguments. (It also contains the types that these routines use, but only the routines are presented here.) The routines in the predefined module arg are: Title not available (arg )
The predefined module arg is only available on the HP-UX operating system. The pas_hp1000 module contains routines that help you migrate Pascal/1000 programs to HP Pascal/HP-UX on the HP 9000 Series 700 or 800 machine. They emulate user-callable routines in the Pascal/1000 run-time library. The routines in the predefined module pas_hp1000 are: Title not available (pas_hp1000 )
The predefined module pas_hp1000 is only available on the HP-UX operating system. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||