IDZEBRA
2.2.7
|
Go to the source code of this file.
Data Structures | |
struct | mc_subfield |
struct | mc_field |
struct | mc_context |
Macros | |
#define | MC_SF 1 |
#define | MC_SFGROUP 2 |
#define | MC_SFVARIANT 3 |
#define | SZ_FNAME 3 |
#define | SZ_IND 1 |
#define | SZ_SFNAME 1 |
#define | SZ_PREFIX 1 |
#define | SZ_SUFFIX 1 |
Typedefs | |
typedef struct mc_subfield | mc_subfield |
typedef struct mc_field | mc_field |
typedef struct mc_context | mc_context |
Enumerations | |
enum | mc_token { NOP , REGULAR , LVARIANT , RVARIANT , LGROUP , RGROUP , LINLINE , RINLINE , SUBFIELD , LINTERVAL , RINTERVAL } |
enum | mc_errcode { EMCOK = 0 , EMCNOMEM , EMCF , EMCSF , EMCSFGROUP , EMCSFVAR , EMCSFINLINE , EMCEND } |
Functions | |
mc_context * | mc_mk_context (const char *s) |
void | mc_destroy_context (mc_context *c) |
mc_field * | mc_getfield (mc_context *c) |
void | mc_destroy_field (mc_field *p) |
void | mc_pr_field (mc_field *p, int offset) |
mc_subfield * | mc_getsubfields (mc_context *c, mc_subfield *parent) |
void | mc_destroy_subfield (mc_subfield *p) |
void | mc_destroy_subfields_recursive (mc_subfield *p) |
void | mc_pr_subfields (mc_subfield *p, int offset) |
mc_errcode | mc_errno (mc_context *c) |
const char * | mc_error (mc_errcode no) |
typedef struct mc_context mc_context |
typedef struct mc_subfield mc_subfield |
enum mc_errcode |
enum mc_token |
void mc_destroy_context | ( | mc_context * | c | ) |
Definition at line 86 of file marcomp.c.
Referenced by parse_data1_tree().
void mc_destroy_field | ( | mc_field * | p | ) |
Definition at line 204 of file marcomp.c.
References mc_field::ind1, mc_field::ind2, mc_field::list, mc_destroy_subfields_recursive(), and mc_field::name.
Referenced by mc_destroy_subfield(), mc_destroy_subfields_recursive(), mc_getfield(), and parse_data1_tree().
void mc_destroy_subfield | ( | mc_subfield * | p | ) |
Definition at line 275 of file marcomp.c.
References mc_subfield::child, mc_subfield::in_line, mc_destroy_field(), mc_destroy_subfields_recursive(), MC_SF, MC_SFGROUP, MC_SFVARIANT, mc_subfield::name, mc_subfield::next, mc_subfield::parent, mc_subfield::prefix, mc_subfield::suffix, mc_subfield::u, and mc_subfield::which.
Referenced by mc_getsubfields().
void mc_destroy_subfields_recursive | ( | mc_subfield * | p | ) |
Definition at line 296 of file marcomp.c.
References mc_subfield::child, mc_subfield::in_line, mc_destroy_field(), MC_SF, MC_SFGROUP, MC_SFVARIANT, mc_subfield::name, mc_subfield::next, mc_subfield::parent, mc_subfield::prefix, mc_subfield::suffix, mc_subfield::u, and mc_subfield::which.
Referenced by mc_destroy_field(), and mc_destroy_subfield().
mc_errcode mc_errno | ( | mc_context * | c | ) |
Definition at line 55 of file marcomp.c.
References mc_context::errcode.
const char* mc_error | ( | mc_errcode | no | ) |
Definition at line 59 of file marcomp.c.
References EMCEND, EMCOK, and mc_errmsg::msg.
mc_field* mc_getfield | ( | mc_context * | c | ) |
Definition at line 214 of file marcomp.c.
References EMCF, EMCNOMEM, mc_field::end, mc_context::errcode, mc_field::ind1, mc_field::ind2, mc_field::interval, LINTERVAL, mc_field::list, mc_destroy_field(), mc_getdata(), mc_getinterval(), mc_getsubfields(), mc_gettoken(), mc_mk_field(), mc_ungettoken(), mc_field::name, mc_field::start, SZ_FNAME, and SZ_IND.
Referenced by mc_getsubfields(), and parse_data1_tree().
mc_subfield* mc_getsubfields | ( | mc_context * | c, |
mc_subfield * | parent | ||
) |
Definition at line 320 of file marcomp.c.
References mc_subfield::child, EMCNOMEM, EMCSF, EMCSFGROUP, EMCSFINLINE, EMCSFVAR, mc_subfield::end, mc_context::errcode, mc_subfield::in_line, mc_subfield::interval, LGROUP, LINLINE, LINTERVAL, LVARIANT, mc_destroy_subfield(), mc_getdata(), mc_getfield(), mc_getinterval(), mc_gettoken(), mc_mk_subfield(), MC_SF, MC_SFGROUP, MC_SFVARIANT, mc_ungettoken(), mc_subfield::name, mc_subfield::next, NOP, mc_subfield::prefix, REGULAR, RGROUP, RINLINE, RVARIANT, mc_subfield::start, SUBFIELD, mc_subfield::suffix, SZ_PREFIX, SZ_SFNAME, SZ_SUFFIX, mc_subfield::u, and mc_subfield::which.
Referenced by mc_getfield().
mc_context* mc_mk_context | ( | const char * | s | ) |
Definition at line 66 of file marcomp.c.
References mc_context::crrtok, mc_context::data, EMCOK, mc_context::errcode, mc_context::len, and NOP.
Referenced by parse_data1_tree().
void mc_pr_field | ( | mc_field * | p, |
int | offset | ||
) |
void mc_pr_subfields | ( | mc_subfield * | p, |
int | offset | ||
) |