Added ifdef USE_XTIMOSI; so that 'make depend' works.
[yaz-moved-to-github.git] / ccl / cclqual.c
index 3fb76c7..2230b77 100644 (file)
@@ -2,7 +2,13 @@
  * Europagate, 1995
  *
  * $Log: cclqual.c,v $
- * Revision 1.2  1995-09-27 15:02:44  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
@@ -38,7 +44,7 @@ struct ccl_qualifiers {
     struct ccl_qualifier *list;
 };
 
-void MDF ccl_qual_add (CCL_bibset b, const char *name, int no, int *pairs)
+void ccl_qual_add (CCL_bibset b, const char *name, int no, int *pairs)
 {
     struct ccl_qualifier *q;
     struct ccl_rpn_attr **attrp;
@@ -49,13 +55,13 @@ void MDF 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;
@@ -70,7 +76,7 @@ void MDF 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++;
@@ -80,21 +86,21 @@ void MDF ccl_qual_add (CCL_bibset b, const char *name, int no, int *pairs)
     *attrp = NULL;
 }
 
-CCL_bibset MDF ccl_qual_mk (void)
+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;
 }
 
-void MDF ccl_qual_rm (CCL_bibset *b)
+void ccl_qual_rm (CCL_bibset *b)
 {
     assert (*b);
     *b = NULL;
 }
 
-struct ccl_rpn_attr MDF *ccl_qual_search (CCL_bibset b, const char *name, int len)
+struct ccl_rpn_attr *ccl_qual_search (CCL_bibset b, const char *name, int len)
 {
     struct ccl_qualifier *q;
 
@@ -105,7 +111,7 @@ struct ccl_rpn_attr MDF *ccl_qual_search (CCL_bibset b, const char *name, int le
     return NULL;
 }
 
-void MDF ccl_qual_file (CCL_bibset bibset, FILE *inf)
+void ccl_qual_file (CCL_bibset bibset, FILE *inf)
 {
     char line[256];
     char *cp;