InChI
 
Loading...
Searching...
No Matches
ichierr.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _IS_OKAY   0
 
#define _IS_WARNING   1
 
#define _IS_ERROR   2 /* Microsoft defined its own IS_ERROR() macro */
 
#define _IS_FATAL   3
 
#define _IS_UNKNOWN   4 /* unknown error: used in INChI DLL only */
 
#define _IS_EOF   -1 /* end of file */
 
#define _IS_SKIP   -2
 
#define CT_ERR_FIRST   (-30000)
 
#define CT_OVERFLOW   (CT_ERR_FIRST- 0) /*(-30000) */
 
#define CT_LEN_MISMATCH   (CT_ERR_FIRST- 1) /*(-30001) */
 
#define CT_OUT_OF_RAM   (CT_ERR_FIRST- 2) /*(-30002) */
 
#define CT_RANKING_ERR   (CT_ERR_FIRST- 3) /*(-30003) */
 
#define CT_ISOCOUNT_ERR   (CT_ERR_FIRST- 4) /*(-30004) */
 
#define CT_TAUCOUNT_ERR   (CT_ERR_FIRST- 5) /*(-30005) */
 
#define CT_ISOTAUCOUNT_ERR   (CT_ERR_FIRST- 6) /*(-30006) */
 
#define CT_MAPCOUNT_ERR   (CT_ERR_FIRST- 7) /*(-30007) */
 
#define CT_TIMEOUT_ERR   (CT_ERR_FIRST- 8) /*(-30008) */
 
#define CT_ISO_H_ERR   (CT_ERR_FIRST- 9) /*(-30009) */
 
#define CT_STEREOCOUNT_ERR   (CT_ERR_FIRST-10) /*(-30010) */
 
#define CT_ATOMCOUNT_ERR   (CT_ERR_FIRST-11) /*(-30011) */
 
#define CT_STEREOBOND_ERROR   (CT_ERR_FIRST-12) /*(-30012) */
 
#define CT_USER_QUIT_ERR   (CT_ERR_FIRST-13) /*(-30013) */
 
#define CT_REMOVE_STEREO_ERR   (CT_ERR_FIRST-14) /*(-30014) */
 
#define CT_CALC_STEREO_ERR   (CT_ERR_FIRST-15) /*(-30015) */
 
#define CT_CANON_ERR   (CT_ERR_FIRST-16) /*(-30016) */
 
#define CT_STEREO_CANON_ERR   (CT_ERR_FIRST-17) /*(-30017) */
 
#define CT_WRONG_FORMULA   (CT_ERR_FIRST-18) /*(-30017) */
 
#define CT_UNKNOWN_ERR   (CT_ERR_FIRST-19) /*(-30019) */
 
#define CT_ERR_MIN   CT_UNKNOWN_ERR
 
#define CT_ERR_MAX   CT_ERR_FIRST
 
#define CHECK_OVERFLOW(Len, Maxlen)   ( (Len) >= (Maxlen) )
 
#define RETURNED_ERROR(nVal)   (CT_ERR_MIN<=(nVal) && (nVal)<=CT_ERR_MAX)
 
#define BNS_ERR   -9999
 
#define BNS_WRONG_PARMS   (BNS_ERR + 0) /*(-9999)*/
 
#define BNS_OUT_OF_RAM   (BNS_ERR + 1) /*(-9998)*/
 
#define BNS_PROGRAM_ERR   (BNS_ERR + 2) /*(-9997)*/
 
#define BNS_ALTPATH_OVFL   (BNS_ERR + 3) /*(-9996)*/
 
#define BNS_BOND_ERR   (BNS_ERR + 4) /*(-9995)*/
 
#define BNS_VERT_NUM_ERR   (BNS_ERR + 5) /*(-9994)*/
 
#define BNS_VERT_EDGE_OVFL   (BNS_ERR + 6) /*(-9993)*/
 
#define BNS_SET_ALTP_ERR   (BNS_ERR + 7) /*(-9992)*/
 
#define BNS_CPOINT_ERR   (BNS_ERR + 8) /*(-9991)*/
 
#define BNS_CANT_SET_BOND   (BNS_ERR + 9) /*(-9990)*/
 
#define BNS_CAP_FLOW_ERR   (BNS_ERR + 10) /*(-9989)*/
 
#define BNS_RADICAL_ERR   (BNS_ERR + 11) /*(-9988)*/
 
#define BNS_REINIT_ERR   (BNS_ERR + 12) /*(-9987)*/
 
#define BNS_ALTBOND_ERR   (BNS_ERR + 13) /*(-9986)*/
 
#define BNS_TIMEOUT   (BNS_ERR + 14) /*(-9985)*/ /* v. 1.05 */
 
#define BNS_MAX_ERR_VALUE   (BNS_ERR + 19) /*(-9980)*/
 
#define IS_BNS_ERROR(X)   (BNS_ERR <= (X) && (X) <= BNS_MAX_ERR_VALUE)
 
#define INCHI_INP_ERROR_ERR   40
 
#define INCHI_INP_ERROR_RET   (-1)
 
#define INCHI_INP_FATAL_ERR   1
 
#define INCHI_INP_FATAL_RET   0
 
#define INCHI_INP_EOF_ERR   11
 
#define INCHI_INP_EOF_RET   0
 
#define LOG_MASK_WARN   1
 
#define LOG_MASK_ERR   2
 
#define LOG_MASK_FATAL   4
 
#define LOG_MASK_ALL   (LOG_MASK_WARN | LOG_MASK_ERR | LOG_MASK_FATAL)
 
#define LOG_MASK_NO_WARN   (LOG_MASK_ERR | LOG_MASK_FATAL)
 
#define USER_ACTION_QUIT   1
 
#define STR_ERR_LEN   256
 
#define WarningMessage   AddErrorMessage
 
#define TREAT_ERR_AND_FIN(err, new_err, err_fin, msg)    if ( !(err) && (new_err) ) { (err) = (new_err);} AddErrorMessage(pStrErr, (msg)); goto err_fin
 
#define TREAT_ERR(err, new_err, msg)    if ( !(err) && (new_err) ) { (err) = (new_err);} AddErrorMessage(pStrErr, (msg))
 

Functions

const char * ErrMsg (int nErrorCode)
 
int AddErrorMessage (char *pStrErr, const char *szMsg)
 

Variables

int(* UserAction )(void)
 
int(* ConsoleQuit )(void)
 

Macro Definition Documentation

◆ _IS_EOF

#define _IS_EOF   -1 /* end of file */

◆ _IS_ERROR

#define _IS_ERROR   2 /* Microsoft defined its own IS_ERROR() macro */

◆ _IS_FATAL

#define _IS_FATAL   3

◆ _IS_OKAY

#define _IS_OKAY   0

◆ _IS_SKIP

#define _IS_SKIP   -2

◆ _IS_UNKNOWN

#define _IS_UNKNOWN   4 /* unknown error: used in INChI DLL only */

◆ _IS_WARNING

#define _IS_WARNING   1

◆ BNS_ALTBOND_ERR

#define BNS_ALTBOND_ERR   (BNS_ERR + 13) /*(-9986)*/

◆ BNS_ALTPATH_OVFL

#define BNS_ALTPATH_OVFL   (BNS_ERR + 3) /*(-9996)*/

◆ BNS_BOND_ERR

#define BNS_BOND_ERR   (BNS_ERR + 4) /*(-9995)*/

◆ BNS_CANT_SET_BOND

#define BNS_CANT_SET_BOND   (BNS_ERR + 9) /*(-9990)*/

◆ BNS_CAP_FLOW_ERR

#define BNS_CAP_FLOW_ERR   (BNS_ERR + 10) /*(-9989)*/

◆ BNS_CPOINT_ERR

#define BNS_CPOINT_ERR   (BNS_ERR + 8) /*(-9991)*/

◆ BNS_ERR

#define BNS_ERR   -9999

◆ BNS_MAX_ERR_VALUE

#define BNS_MAX_ERR_VALUE   (BNS_ERR + 19) /*(-9980)*/

◆ BNS_OUT_OF_RAM

#define BNS_OUT_OF_RAM   (BNS_ERR + 1) /*(-9998)*/

◆ BNS_PROGRAM_ERR

#define BNS_PROGRAM_ERR   (BNS_ERR + 2) /*(-9997)*/

◆ BNS_RADICAL_ERR

#define BNS_RADICAL_ERR   (BNS_ERR + 11) /*(-9988)*/

◆ BNS_REINIT_ERR

#define BNS_REINIT_ERR   (BNS_ERR + 12) /*(-9987)*/

◆ BNS_SET_ALTP_ERR

#define BNS_SET_ALTP_ERR   (BNS_ERR + 7) /*(-9992)*/

◆ BNS_TIMEOUT

#define BNS_TIMEOUT   (BNS_ERR + 14) /*(-9985)*/ /* v. 1.05 */

◆ BNS_VERT_EDGE_OVFL

#define BNS_VERT_EDGE_OVFL   (BNS_ERR + 6) /*(-9993)*/

◆ BNS_VERT_NUM_ERR

#define BNS_VERT_NUM_ERR   (BNS_ERR + 5) /*(-9994)*/

◆ BNS_WRONG_PARMS

#define BNS_WRONG_PARMS   (BNS_ERR + 0) /*(-9999)*/

◆ CHECK_OVERFLOW

#define CHECK_OVERFLOW (   Len,
  Maxlen 
)    ( (Len) >= (Maxlen) )

◆ CT_ATOMCOUNT_ERR

#define CT_ATOMCOUNT_ERR   (CT_ERR_FIRST-11) /*(-30011) */

◆ CT_CALC_STEREO_ERR

#define CT_CALC_STEREO_ERR   (CT_ERR_FIRST-15) /*(-30015) */

◆ CT_CANON_ERR

#define CT_CANON_ERR   (CT_ERR_FIRST-16) /*(-30016) */

◆ CT_ERR_FIRST

#define CT_ERR_FIRST   (-30000)

◆ CT_ERR_MAX

#define CT_ERR_MAX   CT_ERR_FIRST

◆ CT_ERR_MIN

#define CT_ERR_MIN   CT_UNKNOWN_ERR

◆ CT_ISO_H_ERR

#define CT_ISO_H_ERR   (CT_ERR_FIRST- 9) /*(-30009) */

◆ CT_ISOCOUNT_ERR

#define CT_ISOCOUNT_ERR   (CT_ERR_FIRST- 4) /*(-30004) */

◆ CT_ISOTAUCOUNT_ERR

#define CT_ISOTAUCOUNT_ERR   (CT_ERR_FIRST- 6) /*(-30006) */

◆ CT_LEN_MISMATCH

#define CT_LEN_MISMATCH   (CT_ERR_FIRST- 1) /*(-30001) */

◆ CT_MAPCOUNT_ERR

#define CT_MAPCOUNT_ERR   (CT_ERR_FIRST- 7) /*(-30007) */

◆ CT_OUT_OF_RAM

#define CT_OUT_OF_RAM   (CT_ERR_FIRST- 2) /*(-30002) */

◆ CT_OVERFLOW

#define CT_OVERFLOW   (CT_ERR_FIRST- 0) /*(-30000) */

◆ CT_RANKING_ERR

#define CT_RANKING_ERR   (CT_ERR_FIRST- 3) /*(-30003) */

◆ CT_REMOVE_STEREO_ERR

#define CT_REMOVE_STEREO_ERR   (CT_ERR_FIRST-14) /*(-30014) */

◆ CT_STEREO_CANON_ERR

#define CT_STEREO_CANON_ERR   (CT_ERR_FIRST-17) /*(-30017) */

◆ CT_STEREOBOND_ERROR

#define CT_STEREOBOND_ERROR   (CT_ERR_FIRST-12) /*(-30012) */

◆ CT_STEREOCOUNT_ERR

#define CT_STEREOCOUNT_ERR   (CT_ERR_FIRST-10) /*(-30010) */

◆ CT_TAUCOUNT_ERR

#define CT_TAUCOUNT_ERR   (CT_ERR_FIRST- 5) /*(-30005) */

◆ CT_TIMEOUT_ERR

#define CT_TIMEOUT_ERR   (CT_ERR_FIRST- 8) /*(-30008) */

◆ CT_UNKNOWN_ERR

#define CT_UNKNOWN_ERR   (CT_ERR_FIRST-19) /*(-30019) */

◆ CT_USER_QUIT_ERR

#define CT_USER_QUIT_ERR   (CT_ERR_FIRST-13) /*(-30013) */

◆ CT_WRONG_FORMULA

#define CT_WRONG_FORMULA   (CT_ERR_FIRST-18) /*(-30017) */

◆ INCHI_INP_EOF_ERR

#define INCHI_INP_EOF_ERR   11

◆ INCHI_INP_EOF_RET

#define INCHI_INP_EOF_RET   0

◆ INCHI_INP_ERROR_ERR

#define INCHI_INP_ERROR_ERR   40

◆ INCHI_INP_ERROR_RET

#define INCHI_INP_ERROR_RET   (-1)

◆ INCHI_INP_FATAL_ERR

#define INCHI_INP_FATAL_ERR   1

◆ INCHI_INP_FATAL_RET

#define INCHI_INP_FATAL_RET   0

◆ IS_BNS_ERROR

#define IS_BNS_ERROR (   X)    (BNS_ERR <= (X) && (X) <= BNS_MAX_ERR_VALUE)

◆ LOG_MASK_ALL

#define LOG_MASK_ALL   (LOG_MASK_WARN | LOG_MASK_ERR | LOG_MASK_FATAL)

◆ LOG_MASK_ERR

#define LOG_MASK_ERR   2

◆ LOG_MASK_FATAL

#define LOG_MASK_FATAL   4

◆ LOG_MASK_NO_WARN

#define LOG_MASK_NO_WARN   (LOG_MASK_ERR | LOG_MASK_FATAL)

◆ LOG_MASK_WARN

#define LOG_MASK_WARN   1

◆ RETURNED_ERROR

#define RETURNED_ERROR (   nVal)    (CT_ERR_MIN<=(nVal) && (nVal)<=CT_ERR_MAX)

◆ STR_ERR_LEN

#define STR_ERR_LEN   256

◆ TREAT_ERR

#define TREAT_ERR (   err,
  new_err,
  msg 
)     if ( !(err) && (new_err) ) { (err) = (new_err);} AddErrorMessage(pStrErr, (msg))

◆ TREAT_ERR_AND_FIN

#define TREAT_ERR_AND_FIN (   err,
  new_err,
  err_fin,
  msg 
)     if ( !(err) && (new_err) ) { (err) = (new_err);} AddErrorMessage(pStrErr, (msg)); goto err_fin

◆ USER_ACTION_QUIT

#define USER_ACTION_QUIT   1

◆ WarningMessage

#define WarningMessage   AddErrorMessage

Function Documentation

◆ AddErrorMessage()

int AddErrorMessage ( char *  pStrErr,
const char *  szMsg 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ErrMsg()

const char * ErrMsg ( int  nErrorCode)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ ConsoleQuit

int(* ConsoleQuit) (void) ( void  )
extern

◆ UserAction

int(* UserAction) (void) ( void  )
extern