5 * Revision 1.1 1995/02/13 15:15:07 adam
6 * Added handling of qualifiers. Not finished yet.
17 struct ccl_qualifiers {
18 struct ccl_qualifier *list;
21 void ccl_qual_add (CCL_bibset b,
22 const char *name, int nuse, int *use, int relation,
23 int position, int structure, int truncation,
26 struct ccl_qualifier *new_qual;
29 new_qual = malloc (sizeof(*new_qual));
32 new_qual->next = b->list;
35 new_qual->name = malloc (strlen(name)+1);
36 assert (new_qual->name);
37 strcpy (new_qual->name, name);
38 new_qual->nuse = nuse;
39 new_qual->use = malloc (sizeof(int)*nuse);
40 assert (new_qual->use);
41 memcpy (new_qual->use, use, sizeof(int)*nuse);
42 new_qual->relation = relation;
43 new_qual->position = position;
44 new_qual->structure = structure;
45 new_qual->truncation = truncation;
46 new_qual->completeness = completeness;
49 CCL_bibset ccl_qual_mk (void)
51 CCL_bibset b = malloc (sizeof(*b));
57 void ccl_qual_rm (CCL_bibset *b)
63 struct ccl_qualifier *ccl_qual_search (CCL_bibset b, const char *name)
65 struct ccl_qualifier *q;
68 for (q = b->list; q; q = q->next)
69 if (strcmp (name, q->name))