53#define CT_ERR_FIRST (-30000)
54#define CT_OVERFLOW (CT_ERR_FIRST- 0)
55#define CT_LEN_MISMATCH (CT_ERR_FIRST- 1)
56#define CT_OUT_OF_RAM (CT_ERR_FIRST- 2)
57#define CT_RANKING_ERR (CT_ERR_FIRST- 3)
58#define CT_ISOCOUNT_ERR (CT_ERR_FIRST- 4)
59#define CT_TAUCOUNT_ERR (CT_ERR_FIRST- 5)
60#define CT_ISOTAUCOUNT_ERR (CT_ERR_FIRST- 6)
61#define CT_MAPCOUNT_ERR (CT_ERR_FIRST- 7)
62#define CT_TIMEOUT_ERR (CT_ERR_FIRST- 8)
63#define CT_ISO_H_ERR (CT_ERR_FIRST- 9)
64#define CT_STEREOCOUNT_ERR (CT_ERR_FIRST-10)
65#define CT_ATOMCOUNT_ERR (CT_ERR_FIRST-11)
66#define CT_STEREOBOND_ERROR (CT_ERR_FIRST-12)
67#define CT_USER_QUIT_ERR (CT_ERR_FIRST-13)
68#define CT_REMOVE_STEREO_ERR (CT_ERR_FIRST-14)
69#define CT_CALC_STEREO_ERR (CT_ERR_FIRST-15)
70#define CT_CANON_ERR (CT_ERR_FIRST-16)
71#define CT_STEREO_CANON_ERR (CT_ERR_FIRST-17)
72#define CT_WRONG_FORMULA (CT_ERR_FIRST-18)
73#define CT_UNKNOWN_ERR (CT_ERR_FIRST-19)
75#define CT_ERR_MIN CT_UNKNOWN_ERR
76#define CT_ERR_MAX CT_ERR_FIRST
78#define CHECK_OVERFLOW(Len, Maxlen) ( (Len) >= (Maxlen) )
79#define RETURNED_ERROR(nVal) (CT_ERR_MIN<=(nVal) && (nVal)<=CT_ERR_MAX)
83#define BNS_WRONG_PARMS (BNS_ERR + 0)
84#define BNS_OUT_OF_RAM (BNS_ERR + 1)
85#define BNS_PROGRAM_ERR (BNS_ERR + 2)
86#define BNS_ALTPATH_OVFL (BNS_ERR + 3)
87#define BNS_BOND_ERR (BNS_ERR + 4)
88#define BNS_VERT_NUM_ERR (BNS_ERR + 5)
89#define BNS_VERT_EDGE_OVFL (BNS_ERR + 6)
90#define BNS_SET_ALTP_ERR (BNS_ERR + 7)
91#define BNS_CPOINT_ERR (BNS_ERR + 8)
92#define BNS_CANT_SET_BOND (BNS_ERR + 9)
93#define BNS_CAP_FLOW_ERR (BNS_ERR + 10)
94#define BNS_RADICAL_ERR (BNS_ERR + 11)
95#define BNS_REINIT_ERR (BNS_ERR + 12)
96#define BNS_ALTBOND_ERR (BNS_ERR + 13)
98#define BNS_TIMEOUT (BNS_ERR + 14)
100#define BNS_MAX_ERR_VALUE (BNS_ERR + 19)
102#define IS_BNS_ERROR(X) (BNS_ERR <= (X) && (X) <= BNS_MAX_ERR_VALUE)
105#define INCHI_INP_ERROR_ERR 40
106#define INCHI_INP_ERROR_RET (-1)
108#define INCHI_INP_FATAL_ERR 1
109#define INCHI_INP_FATAL_RET 0
111#define INCHI_INP_EOF_ERR 11
112#define INCHI_INP_EOF_RET 0
114#ifndef COMPILE_ALL_CPP
123#ifndef COMPILE_ALL_CPP
129#define LOG_MASK_WARN 1
130#define LOG_MASK_ERR 2
131#define LOG_MASK_FATAL 4
133#define LOG_MASK_ALL (LOG_MASK_WARN | LOG_MASK_ERR | LOG_MASK_FATAL)
134#define LOG_MASK_NO_WARN (LOG_MASK_ERR | LOG_MASK_FATAL)
136#ifdef TARGET_LIB_FOR_WINCHI
139#ifndef COMPILE_ALL_CPP
145 extern void( *FWPRINT ) (
const char * format, va_list argptr );
146 extern void( *FWPUSH ) (
const char *s );
147 extern void( *DRAWDATA ) (
struct DrawData * pDrawData );
148 extern int( *DRAWDATA_EXISTS ) (
int nComponent,
int nType,
int bReconnected );
149 extern struct DrawData * ( *GET_DRAWDATA ) (
int nComponent,
int nType,
int bReconnected );
151#ifndef COMPILE_ALL_CPP
159#define USER_ACTION_QUIT 1
161#define STR_ERR_LEN 256
163const char *
ErrMsg(
int nErrorCode );
167#define WarningMessage AddErrorMessage
170#define TREAT_ERR_AND_FIN(err, new_err, err_fin, msg) \
171 if ( !(err) && (new_err) ) { (err) = (new_err);} AddErrorMessage(pStrErr, (msg)); goto err_fin
172#define TREAT_ERR(err, new_err, msg) \
173 if ( !(err) && (new_err) ) { (err) = (new_err);} AddErrorMessage(pStrErr, (msg))
int(* ConsoleQuit)(void)
Definition runichi.c:193
int(* UserAction)(void)
Definition runichi.c:194
const char * ErrMsg(int nErrorCode)
Definition ichierr.c:54
int AddErrorMessage(char *pStrErr, const char *szMsg)
Definition ichierr.c:106