#include <stdlib.h>
#include <limits.h>
#include <math.h>
#include <float.h>
#include <string.h>
#include <ctype.h>
#include "mode.h"
#include "ichierr.h"
#include "extr_ct.h"
#include "ichi_io.h"
#include "inchi_api.h"
#include "readinch.h"
#include "bcf_s.h"
Macros | |
#define | NO_ATOM (-1) /* non-existent (central) atom */ |
#define | AT_BONDS_VAL(AT, I) AT[I].chem_bonds_valence |
#define | ISOLATED_ATOM 15 |
#define | NUM_ISO_Hk(AT, I, K) AT[I].num_iso_H[K] |
#define | inchi_NUMH2(AT, N) NUMH(AT,N) |
#define | AT_NUM_BONDS(AT) (AT).valence |
#define | IS_METAL_ATOM(AT, I) is_el_a_metal( AT[I].el_number ) |
#define | MAX_CHAIN_LEN 20 |
Functions | |
void | find_and_interpret_structure_header (char *szLine, char *pSdfLabel, char *pSdfValue, unsigned long *Id, int hlen, ReadINCHI_CtlData *ir) |
inchi_Stereo0D * | CreateInchi_Stereo0D (int num_stereo0D) |
void | FreeInchi_Stereo0D (inchi_Stereo0D **stereo0D) |
int | Extract0DParities (inp_ATOM *at, int nNumAtoms, inchi_Stereo0D *stereo0D, int num_stereo0D, char *pStrErr, int *err, int vABParityUnknown) |
char * | FindToken (INCHI_IOSTREAM *inp_file, int *bTooLongLine, const char *sToken, int lToken, char *szLine, int nLenLine, char *p, int *res) |
char * | LoadLine (INCHI_IOSTREAM *inp_file, int *bTooLongLine, int *bItemIsOver, char **s, char *szLine, int nLenLine, int nMinLen2Load, char *p, int *res) |
int | InchiToInpAtom (INCHI_IOSTREAM *inp_file, MOL_COORD **szCoord, int bDoNotAddH, int vABParityUnknown, INPUT_TYPE nInputType, inp_ATOM **at, int max_num_at, int *num_dimensions, int *num_bonds, char *pSdfLabel, char *pSdfValue, unsigned long *Id, INCHI_MODE *pInpAtomFlags, int *err, char *pStrErr) |
Variables | |
char | szLine_i2i [INCHI_LINE_LEN] |
#define AT_BONDS_VAL | ( | AT, | |
I | |||
) | AT[I].chem_bonds_valence |
#define AT_NUM_BONDS | ( | AT | ) | (AT).valence |
#define inchi_NUMH2 | ( | AT, | |
N | |||
) | NUMH(AT,N) |
#define IS_METAL_ATOM | ( | AT, | |
I | |||
) | is_el_a_metal( AT[I].el_number ) |
#define ISOLATED_ATOM 15 |
#define MAX_CHAIN_LEN 20 |
#define NO_ATOM (-1) /* non-existent (central) atom */ |
#define NUM_ISO_Hk | ( | AT, | |
I, | |||
K | |||
) | AT[I].num_iso_H[K] |
inchi_Stereo0D * CreateInchi_Stereo0D | ( | int | num_stereo0D | ) |
int Extract0DParities | ( | inp_ATOM * | at, |
int | nNumAtoms, | ||
inchi_Stereo0D * | stereo0D, | ||
int | num_stereo0D, | ||
char * | pStrErr, | ||
int * | err, | ||
int | vABParityUnknown | ||
) |
void find_and_interpret_structure_header | ( | char * | szLine, |
char * | pSdfLabel, | ||
char * | pSdfValue, | ||
unsigned long * | Id, | ||
int | hlen, | ||
ReadINCHI_CtlData * | ir | ||
) |
char * FindToken | ( | INCHI_IOSTREAM * | inp_file, |
int * | bTooLongLine, | ||
const char * | sToken, | ||
int | lToken, | ||
char * | szLine, | ||
int | nLenLine, | ||
char * | p, | ||
int * | res | ||
) |
void FreeInchi_Stereo0D | ( | inchi_Stereo0D ** | stereo0D | ) |
int InchiToInpAtom | ( | INCHI_IOSTREAM * | inp_file, |
MOL_COORD ** | szCoord, | ||
int | bDoNotAddH, | ||
int | vABParityUnknown, | ||
INPUT_TYPE | nInputType, | ||
inp_ATOM ** | at, | ||
int | max_num_at, | ||
int * | num_dimensions, | ||
int * | num_bonds, | ||
char * | pSdfLabel, | ||
char * | pSdfValue, | ||
unsigned long * | Id, | ||
INCHI_MODE * | pInpAtomFlags, | ||
int * | err, | ||
char * | pStrErr | ||
) |
char * LoadLine | ( | INCHI_IOSTREAM * | inp_file, |
int * | bTooLongLine, | ||
int * | bItemIsOver, | ||
char ** | s, | ||
char * | szLine, | ||
int | nLenLine, | ||
int | nMinLen2Load, | ||
char * | p, | ||
int * | res | ||
) |
char szLine_i2i[INCHI_LINE_LEN] |