| United States-English |
|
|
|
![]() |
HP Pascal/HP-UX Programmer's Guide > Appendix B HP-UX Dependencies HP-UX Extensions |
|
HP-UX extensions are available only to programs that are compiled by the HP Pascal compiler running on the HP-UX operating system. The programs themselves must also run on the HP-UX operating system. The HP-UX extensions are:
The global variable errno is special in that a program can access it through the EXTERNAL directive. Example
When another compilation unit is linked with the preceding program, it can access the function Pas_Errno, which returns the value of the global variable errno. The predefined function fnum returns the HP-UX file number of the physical file currently associated with a given logical file. You can use this file number in system calls. Syntax
Example
Output:
The predefined function get_alignment returns the alignment requirement of a given type or variable. Syntax [get_alignment ( {variabletype})] Parameters
Example
The predefined function statement_number returns the statement number of the statement that calls it, as shown on the compiled listing. It is a useful debugging aid, especially when used with the predefined procedure assert. Syntax
Example
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||