Specifications

System Macros Invoked by Drivers
$DEF
$DEF
Defines a data-structure field within the context of a $DEFINI macro.
Format
$DEF sym [,alloc] [,siz]
Parameters
sym
Name of the symbol to access the field.
[alloc]
Block-storage-allocation directives, one of the following: .BLKB, .BLKW, .BLKL,
.BLKQ, or .BLKO.
[siz]
Number of block storage units to allocate.
Description
See the descriptions of the $DEFINI, $DEFEND, _VIELD, and $EQULST macros
for additional information on defining symbols for data structure fields.
You can define a second symbolic name for a single field, using the $DEF macro
a second time immediately following the first definition, leaving the alloc
argument blank in the first definition. The following example does this, equating
SYNONYM2 with LABEL2:
$DEFINI JLB ;Start structure definition
$DEF LABEL1 .BLKL 1 ;First JLB field
$DEF SYNONYM2 ;Synonym for LABEL2 field
$DEF LABEL2 .BLKL 1 ;Second JLB field
$DEF LABEL3 .BLKL 1 ;Third JLB field
$DEFEND JLB ;End of JLB structure
For another example of the use of the $DEF macro, see the description of the
$DEFINI macro.
2–14