HP Pascal/iX Programmer's Guide (31502-90023)

9- 4
Table 9-1. Corresponding HP Pascal and HP C Types
--------------------------------------------------------------------------------------------
| | |
| HP Pascal Type | Corresponding HP C Types |
| | |
--------------------------------------------------------------------------------------------
| | |
| Array: Not PACKED | Array of corresponding type1 |
| | |
--------------------------------------------------------------------------------------------
| | |
| Array: PACKED | Array of corresponding type1 |
| | |
--------------------------------------------------------------------------------------------
| | |
| Bit16 | unsigned short |
| | |
--------------------------------------------------------------------------------------------
| | |
| Bit32 | unsigned int |
| | |
--------------------------------------------------------------------------------------------
| | |
| Bit52 | struct with two unsigned ints |
| | |
--------------------------------------------------------------------------------------------
| | |
| Boolean (false = 0, true = 1) | Character or integer (false = 0, true |
| | <> 0)2 |
| | |
--------------------------------------------------------------------------------------------
| | |
| Char | unsigned char |
| | |
--------------------------------------------------------------------------------------------
| | |
| Enumerated 256 or fewer elements | unsigned char3 |
| | |
--------------------------------------------------------------------------------------------
| | |
| Enumerated 257 or more elements | unsigned short or int3 |
| | |
--------------------------------------------------------------------------------------------
| | |
| File | Not available8 |
| | |
--------------------------------------------------------------------------------------------
| | |
| Function | Function |
| | |
--------------------------------------------------------------------------------------------
| | |
| Function parameter or variable | Pass a pointer that references a C |
| | function6 |
| | |
--------------------------------------------------------------------------------------------
| | |
| Integer | int or long |
| | |
--------------------------------------------------------------------------------------------
| | |
| Longint | struct with two unsigned ints |
| | |
--------------------------------------------------------------------------------------------
| | |
| Longreal | double or long float |
| | |
--------------------------------------------------------------------------------------------
| | |
| PAC of
n
characters | Array of char, index = 1..
n
-1 |
| | |
--------------------------------------------------------------------------------------------
| | |
| Pointer: Not EXTNADDR | Pointer to corresponding type |