2 $Id: marcomp.h,v 1.1 2006-07-03 14:27:09 adam Exp $
11 typedef struct mc_subfield
24 #define MC_SFVARIANT 3
25 struct mc_field *in_line;
26 struct mc_subfield *child;
28 struct mc_subfield *next;
29 struct mc_subfield *parent;
38 typedef struct mc_field
47 struct mc_subfield *list;
67 EMCOK = 0, /* first always, mondatory */
74 EMCEND /* last always, mondatory */
77 typedef struct mc_context
90 mc_context *mc_mk_context(const char *s);
91 void mc_destroy_context(mc_context *c);
93 mc_field *mc_getfield(mc_context *c);
94 void mc_destroy_field(mc_field *p);
95 void mc_pr_field(mc_field *p, int offset);
97 mc_subfield *mc_getsubfields(mc_context *c, mc_subfield *parent);
98 void mc_destroy_subfield(mc_subfield *p);
99 void mc_destroy_subfields_recursive(mc_subfield *p);
100 void mc_pr_subfields(mc_subfield *p, int offset);
102 mc_errcode mc_errno(mc_context *c);
103 const char *mc_error(mc_errcode no);
113 * indent-tabs-mode: nil
115 * vim: shiftwidth=4 tabstop=8 expandtab