X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ccl%2Fcclqual.c;h=2230b77f1ea35b4fd1b2042e752693dea4d1cb6e;hb=593e3a0579cb7de6d79c1ebc665612fd9cb5bac9;hp=5ba4aa306c4d700081ca32abd602551a2833459b;hpb=330271187bc05322c13e6e22483120ca8e5a20a1;p=yaz-moved-to-github.git diff --git a/ccl/cclqual.c b/ccl/cclqual.c index 5ba4aa3..2230b77 100644 --- a/ccl/cclqual.c +++ b/ccl/cclqual.c @@ -2,7 +2,16 @@ * Europagate, 1995 * * $Log: cclqual.c,v $ - * Revision 1.1 1995-04-10 10:28:20 quinn + * Revision 1.4 1995-11-01 13:54:21 quinn + * Minor adjustments + * + * Revision 1.3 1995/09/29 17:12:00 quinn + * Smallish + * + * Revision 1.2 1995/09/27 15:02:44 quinn + * Modified function heads & prototypes. + * + * Revision 1.1 1995/04/10 10:28:20 quinn * Added copy of CCL. * * Revision 1.6 1995/02/23 08:32:00 adam @@ -46,13 +55,13 @@ void ccl_qual_add (CCL_bibset b, const char *name, int no, int *pairs) break; if (!q) { - struct ccl_qualifier *new_qual = malloc (sizeof(*new_qual)); + struct ccl_qualifier *new_qual = xmalloc (sizeof(*new_qual)); assert (new_qual); new_qual->next = b->list; b->list = new_qual; - new_qual->name = malloc (strlen(name)+1); + new_qual->name = xmalloc (strlen(name)+1); assert (new_qual->name); strcpy (new_qual->name, name); attrp = &new_qual->attr_list; @@ -67,7 +76,7 @@ void ccl_qual_add (CCL_bibset b, const char *name, int no, int *pairs) { struct ccl_rpn_attr *attr; - attr = malloc (sizeof(*attr)); + attr = xmalloc (sizeof(*attr)); assert (attr); attr->type = *pairs++; attr->value = *pairs++; @@ -79,7 +88,7 @@ void ccl_qual_add (CCL_bibset b, const char *name, int no, int *pairs) CCL_bibset ccl_qual_mk (void) { - CCL_bibset b = malloc (sizeof(*b)); + CCL_bibset b = xmalloc (sizeof(*b)); assert (b); b->list = NULL; return b;