DDL Compiler Commands
Data Definition Language (DDL) Reference Manual — 426798-002
9- 39
C_MATCH_HISTORIC_TAL Command
•
DDL word-aligns substructures declared by template with a
typedef
or
structure
tag. DDL adds a filler if needed to word-align a referenced definition.
•
DDL word-aligns substructures that refer to other group definitions to make their
length even.
•
The C source code for a struct generated with matched2 alignment set is preceded
by the following statement:
#pragma fieldalign matched2 __struct-name
where __
struct-name
is the name of the struct.
•
To suppress the
#pragma
fieldalign matched2
statements, set the
NOCPRAGMA command.
C_MATCH_HISTORIC_TAL Command Example
The following example shows the C source generated for the given DDL source with
C_MATCH_HISTORIC_TAL in effect which allows substructures to start and end on
odd-byte boundaries. If the C_MATCH_HISTORIC_TAL command is not in effect,
C source will not be generated for
def f
because substructure
j
starts on an odd-
byte boundary.
def a.
02 b type character 1.
02 c type character 1.
02 d type character 1.
end.
def e type character 1.
def f.
02 g type binary 16.
02 h.
03 i type e.
03 j type a.
02 k type character 1.
02 l type binary 16.
end.
DDL emits a filler at level 2 after
k
because the following data items will not fit in the
remaining byte.
Generated C Source:
/* SCHEMA PRODUCED DATE - TIME :10/13/1995 13:23:16 */
#pragma section a
/* Definition A created on 10/13/1995 at 13:23 */
#pragma fieldalign shared8 __a
typedef struct __a
{
char b;
char c;
char d;
Содержание DDL D40
Страница 36: ...Introduction to DDL Data Definition Language DDL Reference Manual 426798 002 1 14 Examining a Dictionary ...
Страница 66: ...Named Constants Data Definition Language DDL Reference Manual 426798 002 4 10 Standard SPI Constants ...
Страница 230: ...Dictionary Manipulation Statements Data Definition Language DDL Reference Manual 426798 002 8 14 SHOW USE OF Statement ...
Страница 370: ...Dictionary Maintenance Data Definition Language DDL Reference Manual 426798 002 10 24 Converting a Dictionary ...
Страница 456: ...Sample Schemas Data Definition Language DDL Reference Manual 426798 002 B 12 ASSNDDL Statements ...
Страница 470: ...DDL Data Translation Data Definition Language DDL Reference Manual 426798 002 C 14 ...
Страница 528: ...Dictionary Reports Data Definition Language DDL Reference Manual 426798 002 E 8 Requesting Reports ...
Страница 552: ...DDL Alignment Rules Data Definition Language DDL Reference Manual 426798 002 H 4 FIELDALIGN_SHARED8 Alignment Rules ...
Страница 576: ...Index Data Definition Language DDL Reference Manual 426798 002 Index 22 Special Characters ...