5 * Revision 1.2 1995/02/14 10:25:56 adam
6 * The constructions 'qualifier rel term ...' implemented.
8 * Revision 1.1 1995/02/13 15:15:07 adam
9 * Added handling of qualifiers. Not finished yet.
20 struct ccl_qualifiers {
21 struct ccl_qualifier *list;
24 void ccl_qual_add (CCL_bibset b, const char *name, int no, int *pairs)
26 struct ccl_qualifier *new_qual;
27 struct ccl_rpn_attr **attrp;
30 new_qual = malloc (sizeof(*new_qual));
33 new_qual->next = b->list;
36 new_qual->name = malloc (strlen(name)+1);
37 assert (new_qual->name);
38 strcpy (new_qual->name, name);
39 attrp = &new_qual->attr_list;
43 struct ccl_rpn_attr *attr;
45 attr = malloc (sizeof(*attr));
47 attr->type = *pairs++;
48 attr->value = *pairs++;
55 CCL_bibset ccl_qual_mk (void)
57 CCL_bibset b = malloc (sizeof(*b));
63 void ccl_qual_rm (CCL_bibset *b)
69 struct ccl_rpn_attr *ccl_qual_search (CCL_bibset b, const char *name, int len)
71 struct ccl_qualifier *q;
74 for (q = b->list; q; q = q->next)
75 if (strlen(q->name) == len && !memcmp (name, q->name, len))