TACL Reference Manual
Variables
HP NonStop TACL Reference Manual—429513-018
4-15
Declaring a Simple Data Item
an even number of bytes. In this case, either all occurrences of the
substructure are word-aligned or none are.
Declaring a Simple Data Item
A simple data item declaration associates an identifier with a single-element data item.
The syntax for a simple data item declaration is:
type identifier [ VALUE initial-value ] ;
type
is one of these data types:
BOOL
is a 16-bit signed value that is either true (represented by -1) or false
(represented by 0).
BYTE
is an 8-bit unsigned binary integer; its value is in the range 0 to 255.
CHAR
is an 8-bit ASCII character.
CRTPID
is a 4-word internal-format process ID.
DEVICE
is a 4-word internal-format device name.
ENUM
is a 16-bit signed, enumerated value whose range is defined by the subsystem
and depends on the token number; its value is in the range -32768 to +32767,
and its format is the same as for INT type.
FNAME
is a 12-word internal-format file name for a disk file, process, or device, in the
same form as that produced by the FNAMEEXPAND procedure.
BOOL BYTE CHAR CRTPID DEVICE DEVICE
ENUM FNAME FNAME32 INT INT2 INT4
PHANDLE SSID STRUCT SUBVOL TRANSID TSTAMP
UINT USERNAME BOOL UINT