17#define MAX_SDF_HEADER 64
18#define MAX_SDF_VALUE 255
22#define ATOM_INFO_LEN 36
24#define MAX_STEREO_BONDS 3
25#define NUM_H_ISOTOPES 3
29#define MIN_INPUT_BOND_TYPE 1
30#define MAX_INPUT_BOND_TYPE 4
32#define BOND_TYPE_SINGLE 1
33#define BOND_TYPE_DOUBLE 2
34#define BOND_TYPE_TRIPLE 3
35#define BOND_TYPE_ALTERN 4
37#define STEREO_SNGL_UP 1
38#define STEREO_SNGL_EITHER 4
39#define STEREO_SNGL_DOWN 6
40#define STEREO_DBLE_EITHER 3
44#define INPUT_STEREO_SNGL_UP 1
45#define INPUT_STEREO_SNGL_EITHER 4
46#define INPUT_STEREO_SNGL_DOWN 6
47#define INPUT_STEREO_DBLE_EITHER 3
53#define BOND_MARK_PARITY 0x30
54#define BOND_MARK_HIGHLIGHT 0x40
56#define BOND_MARK_ODD '-'
57#define BOND_MARK_EVEN '+'
58#define BOND_MARK_UNDF '?'
59#define BOND_MARK_UNKN 'u'
60#define BOND_MARK_ERR '*'
63#define SALT_DONOR_Neg 2
64#define SALT_ACCEPTOR 4
66#define SALT_p_ACCEPTOR 16
67#define SALT_DONOR_ALL (SALT_DONOR_Neg | SALT_DONOR_H | SALT_p_ACCEPTOR | SALT_p_DONOR)
68#define SALT_DONOR_Neg2 (SALT_DONOR_Neg | SALT_p_ACCEPTOR)
69#define SALT_DONOR_H2 (SALT_DONOR_H | SALT_p_DONOR)
70#define SALT_DONOR (SALT_DONOR_Neg | SALT_DONOR_H)
72#define SALT_SELECTED 32
75#define RADICAL_SINGLET 1
76#define RADICAL_DOUBLET 2
77#define RADICAL_TRIPLET 3
84#define ZERO_ATW_DIFF 127
88#define UCINT (int)(unsigned char)
90#ifndef INCHI_US_CHAR_DEF
93#define INCHI_US_CHAR_DEF
96#ifndef INCHI_US_SHORT_DEF
99#define INCHI_US_SHORT_DEF
102#ifndef COMPILE_ALL_CPP
124 void inchi_swap(
char* a,
char* b,
size_t width);
127 void* base,
size_t num,
size_t width,
int(*compare)(
const void* e1,
const void* e2,
void*));
129 AT_NUMB* base,
int num,
int(*compare)(
const void* e1,
const void* e2,
void*));
138#define inchi_max(a,b) (((a)>(b))?(a):(b))
139#define inchi_min(a,b) (((a)<(b))?(a):(b))
141#ifndef COMPILE_ALL_CPP
unsigned short AT_NUMB
Definition ichisize.h:10
signed char S_CHAR
Definition incomdef.h:91
unsigned short U_SHORT
Definition incomdef.h:98
unsigned char U_CHAR
Definition incomdef.h:92
void inchi_swap(char *a, char *b, size_t width)
Definition ichisort.c:251
int insertions_sort_AT_NUMBERS(void *pCG, AT_NUMB *base, int num, int(*compare)(const void *e1, const void *e2, void *))
Definition ichisort.c:296
int insertions_sort(void *pCG, void *base, size_t num, size_t width, int(*compare)(const void *e1, const void *e2, void *))
signed short S_SHORT
Definition incomdef.h:97
#define inchi_malloc
Definition mode.h:1122
#define inchi_calloc
Definition mode.h:1125
#define inchi_free(X)
Definition mode.h:1131