/* CCL qualifiers
* Europagate, 1995
*
- * $Id: cclqual.c,v 1.3 2005-06-25 15:46:03 adam Exp $
+ * $Id: cclqual.c,v 1.5 2007-04-26 09:11:56 adam Exp $
*
* Old Europagate Log:
*
#include <stdlib.h>
#include <string.h>
-#include <yaz/ccl.h>
+#include "cclp.h"
+
+/** CCL Qualifier */
+struct ccl_qualifier {
+ char *name;
+ int no_sub;
+ struct ccl_qualifier **sub;
+ struct ccl_rpn_attr *attr_list;
+ struct ccl_qualifier *next;
+};
+
/** Definition of CCL_bibset pointer */
struct ccl_qualifiers {
else
{
p = (struct ccl_qualifier_special *) xmalloc (sizeof(*p));
- p->name = ccl_strdup (n);
+ p->name = xstrdup(n);
p->value = 0;
p->next = bibset->special;
bibset->special = p;
if (q)
return ;
q = (struct ccl_qualifier *) xmalloc (sizeof(*q));
- q->name = ccl_strdup (n);
+ q->name = xstrdup(n);
q->attr_list = 0;
q->next = b->list;
b->list = q;
new_qual->next = b->list;
b->list = new_qual;
- new_qual->name = ccl_strdup (name);
+ new_qual->name = xstrdup(name);
attrp = &new_qual->attr_list;
new_qual->no_sub = 0;