HP Pascal/iX Programmer's Guide (31502-90023)
9- 5
| | |
--------------------------------------------------------------------------------------------
| | |
| Pointer: EXTNADDR | Long ptr to corresponding type7 |
| | |
--------------------------------------------------------------------------------------------
| | |
| Procedure | void function |
| | |
--------------------------------------------------------------------------------------------
| | |
| Procedure parameter or variable | Pass a pointer that references a C |
| | function6 |
| | |
--------------------------------------------------------------------------------------------
| | |
| Real | float9 |
| | |
--------------------------------------------------------------------------------------------
| | |
| Record | struct or union4 |
| | |
---------------------------------------------------------------------------------------
-----
| | |
| Set | Not available |
| | |
--------------------------------------------------------------------------------------------
| | |
| Shortint | short |
| | |
--------------------------------------------------------------------------------------------
| | |
| String | char *5 |
| | |
--------------------------------------------------------------------------------------------
| | |
| String[
n
] | char *5 |
| | |
--------------------------------------------------------------------------------------------
| | |
| VAR parameter: Not EXTNADDR | Pointer to parameter |
| | |
--------------------------------------------------------------------------------------------
| | |
| VAR parameter: EXTNADDR | Long pointer to parameter7 |
| | |
--------------------------------------------------------------------------------------------
| | |
| 0..65535 | unsigned short |
| | |
--------------------------------------------------------------------------------------------
Table 9-1 Notes
1. The lower bound of an HP Pascal array can be any integer, but the
lower bound of a C array must be zero.
2. HP Pascal allocates one byte for a Boolean variable. It stores
the value in the rightmost bit.
3. A C enumerated variable corresponds to an HP Pascal
integer
, but
an HP Pascal enumerated variable corresponds to a C
unsigned char
if it is one byte, a C
unsigned short
if it is two bytes, and a C
unsigned int
if it is four bytes.
4. A C
union
type corresponds to the variant part of an HP Pascal
record type. For example:
The C type
union
typedef union
{
int In ;