Using the GENCSRC Utility for Level Checking
Use the GENCSRC utility to retrieve externally
described file information for use in a C/C++ program. The utility:
- Creates a C/C++ header file which contains the type definition structure for the include file.
- Supports creation of C/C++ include files.
Note: For a list of options for the SLTFLD keyword,
see The GENCSRC Utility and the #pragma mapinc Directive.
If you specify the keyword SLTFLD with
value
*LVLCHK
on the GENCSRC command, in addition
to generating the type _LVLCHK_T
(array of structures),
a variable of type _LVLCHK_T
is also generated. The
name of this variable of type _LVLCHK_T
is based
on some or all of the following:
In the case when SLTFLD(*LVLCHK) is specified
with the default TYPEDEFPFX(*OBJ), the name
of the level check structure is based on the file name as specified
in the OBJ keyword and the include name
(see Table 1). The GENCSRC
command generates the level check structure named
mylib_myfile_mymbr_lvlchk
,
as shown in the following examples:In the case when SLTFLD(*LVLCHK) is specified
with TYPEDEFPFX(*NONE), the name of the
level check structure is based on the member name, and the commands
in Figure 2 generate a level
check structure named
mymbr_lvlchk
.
In the case when SLTFLD(*LVLCHK) is specified
with TYPEDEFPFX(prefix_name)
,
the name of the level check structure is the prefix_name followed
by the file name based on the OBJ keyword and the SRCFILE/SRCMBR or
SRCSTMF keywords (the include file). The commands in Figure 3 give the level check structure
named MYPREFIX_mylib_myfile_mymbr_lvlchk
.