18#define CT_ERR_FIRST (-30000)
19#define CT_OVERFLOW (CT_ERR_FIRST- 0)
20#define CT_LEN_MISMATCH (CT_ERR_FIRST- 1)
21#define CT_OUT_OF_RAM (CT_ERR_FIRST- 2)
22#define CT_RANKING_ERR (CT_ERR_FIRST- 3)
23#define CT_ISOCOUNT_ERR (CT_ERR_FIRST- 4)
24#define CT_TAUCOUNT_ERR (CT_ERR_FIRST- 5)
25#define CT_ISOTAUCOUNT_ERR (CT_ERR_FIRST- 6)
26#define CT_MAPCOUNT_ERR (CT_ERR_FIRST- 7)
27#define CT_TIMEOUT_ERR (CT_ERR_FIRST- 8)
28#define CT_ISO_H_ERR (CT_ERR_FIRST- 9)
29#define CT_STEREOCOUNT_ERR (CT_ERR_FIRST-10)
30#define CT_ATOMCOUNT_ERR (CT_ERR_FIRST-11)
31#define CT_STEREOBOND_ERROR (CT_ERR_FIRST-12)
32#define CT_USER_QUIT_ERR (CT_ERR_FIRST-13)
33#define CT_REMOVE_STEREO_ERR (CT_ERR_FIRST-14)
34#define CT_CALC_STEREO_ERR (CT_ERR_FIRST-15)
35#define CT_CANON_ERR (CT_ERR_FIRST-16)
36#define CT_STEREO_CANON_ERR (CT_ERR_FIRST-17)
37#define CT_WRONG_FORMULA (CT_ERR_FIRST-18)
38#define CT_UNKNOWN_ERR (CT_ERR_FIRST-19)
40#define CT_ERR_MIN CT_UNKNOWN_ERR
41#define CT_ERR_MAX CT_ERR_FIRST
43#define CHECK_OVERFLOW(Len, Maxlen) ( (Len) >= (Maxlen) )
44#define RETURNED_ERROR(nVal) (CT_ERR_MIN<=(nVal) && (nVal)<=CT_ERR_MAX)
48#define BNS_WRONG_PARMS (BNS_ERR + 0)
49#define BNS_OUT_OF_RAM (BNS_ERR + 1)
50#define BNS_PROGRAM_ERR (BNS_ERR + 2)
51#define BNS_ALTPATH_OVFL (BNS_ERR + 3)
52#define BNS_BOND_ERR (BNS_ERR + 4)
53#define BNS_VERT_NUM_ERR (BNS_ERR + 5)
54#define BNS_VERT_EDGE_OVFL (BNS_ERR + 6)
55#define BNS_SET_ALTP_ERR (BNS_ERR + 7)
56#define BNS_CPOINT_ERR (BNS_ERR + 8)
57#define BNS_CANT_SET_BOND (BNS_ERR + 9)
58#define BNS_CAP_FLOW_ERR (BNS_ERR + 10)
59#define BNS_RADICAL_ERR (BNS_ERR + 11)
60#define BNS_REINIT_ERR (BNS_ERR + 12)
61#define BNS_ALTBOND_ERR (BNS_ERR + 13)
63#define BNS_TIMEOUT (BNS_ERR + 14)
65#define BNS_MAX_ERR_VALUE (BNS_ERR + 19)
67#define IS_BNS_ERROR(X) (BNS_ERR <= (X) && (X) <= BNS_MAX_ERR_VALUE)
70#define INCHI_INP_ERROR_ERR 40
71#define INCHI_INP_ERROR_RET (-1)
73#define INCHI_INP_FATAL_ERR 1
74#define INCHI_INP_FATAL_RET 0
76#define INCHI_INP_EOF_ERR 11
77#define INCHI_INP_EOF_RET 0
79#ifndef COMPILE_ALL_CPP
88#ifndef COMPILE_ALL_CPP
94#define LOG_MASK_WARN 1
96#define LOG_MASK_FATAL 4
98#define LOG_MASK_ALL (LOG_MASK_WARN | LOG_MASK_ERR | LOG_MASK_FATAL)
99#define LOG_MASK_NO_WARN (LOG_MASK_ERR | LOG_MASK_FATAL)
101#ifdef TARGET_LIB_FOR_WINCHI
104#ifndef COMPILE_ALL_CPP
110 extern void( *FWPRINT ) (
const char * format, va_list argptr );
111 extern void( *FWPUSH ) (
const char *s );
112 extern void( *DRAWDATA ) (
struct DrawData * pDrawData );
113 extern int( *DRAWDATA_EXISTS ) (
int nComponent,
int nType,
int bReconnected );
114 extern struct DrawData * ( *GET_DRAWDATA ) (
int nComponent,
int nType,
int bReconnected );
116#ifndef COMPILE_ALL_CPP
124#define USER_ACTION_QUIT 1
126#define STR_ERR_LEN 256
128const char *
ErrMsg(
int nErrorCode );
132#define WarningMessage AddErrorMessage
135#define TREAT_ERR_AND_FIN(err, new_err, err_fin, msg) \
136 if ( !(err) && (new_err) ) { (err) = (new_err);} AddErrorMessage(pStrErr, (msg)); goto err_fin
137#define TREAT_ERR(err, new_err, msg) \
138 if ( !(err) && (new_err) ) { (err) = (new_err);} AddErrorMessage(pStrErr, (msg))
int(* ConsoleQuit)(void)
Definition runichi.c:158
int(* UserAction)(void)
Definition runichi.c:159
const char * ErrMsg(int nErrorCode)
Definition ichierr.c:19
int AddErrorMessage(char *pStrErr, const char *szMsg)
Definition ichierr.c:71