C_Decimal Command - HP DDL D40 Reference Manual

Data definition language
Table of Contents

Advertisement

DDL Compiler Commands
It is the user's responsibility to use proper identifiers along with the CUNDEF
command.
CUNDEF Command Example
The following example shows the use of the CUNDEF compiler command:
11> DDL
!?C CSRC
!CONSTANT EMP VALUE "JYOTI".
!?CIFDEF
EMP
!?CUNDEF
EMP
!?CENDIF
!?NOC
!?C CSRC
Output source for C is opened on $ADE101.BUG.CSRC
!CONSTANT EMP VALUE "JYOTI".
Constant EMP defined.
C output produced for EMP.
!?CIFDEF EMP
!?CUNDEF EMP
!?CENDIF
!?NOC
Output source for C is closed.
The C source file csrc contains the following.
/* SCHEMA PRODUCED DATE - TIME : 3/10/2000 - 20:05:28 */
#pragma section emp
/* Constant EMP created on 03/10/2000 at 20:05 */
#define EMP "JYOTI"
#ifdef EMP
#undef EMP
#endif

C_DECIMAL Command

The C_DECIMAL command controls whether the DDL compiler produces decimal
output for C numeric items.
[ NO ] C_DECIMAL
C_DECIMAL
directs the DDL compiler to produces decimal output for the appropriate C numeric
items. (By default, DDL generates the C output of a numeric field as type char.)
Data Definition Language (DDL) Reference Manual—426798-002
9- 35
C_DECIMAL Command

Advertisement

Table of Contents
loading

Table of Contents