代码大全

(singke) #1
if ( DataReady )...
if ( CharacterType PRINTABLE_CHAR )...
if ( ReportType AnnualRpt )...
if ( RecalcNeeded TRUE )...

DataReady = TRUE
CharacterType = CONTROL_CHARACTER;
ReportType = AnnualRpt;
RecalcNeeded = FALSE;
CharacterType = CONTROL_CHARACTER
StatusFlag = 0x 80 if ( ReportType
AnnualRpt ) if ( PrintFlag 16 )


C
/ values for DataReady and RecalcNeeded /


#define TRUE 1
#define FALSE 0

/* values for CharacterType */

#define LETTER 0x01
#define DIGIT 0x02
#define PUNCTUATION 0x04
#define LINE_DRAW 0x08
#define PRINTABLE_CHAR ( LETTER | DIGIT | PUNCTUATION | LINE_DRAW )

#define CONTROL_CHARACTER 0x80

/* values for ReportType */

Typedef enum { DailyRpt MonthlyRpt, QuarterlyRpt
AnnualRpt AllRpts REPORT_TYPE_T;


9.2.3

TEMP X
Free download pdf