X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ccl%2Fccltoken.c;h=14b217dca74ab171fcef25a1cd52f87225a5ee93;hb=c195f14eb2fd48882f7b19dcb1b2421b1d174900;hp=edd2974e37b6c330f6b1c3fd5644093bc0ec1073;hpb=657fb99115b87a5244e9a33bbe4ca3d9d18849c4;p=yaz-moved-to-github.git diff --git a/ccl/ccltoken.c b/ccl/ccltoken.c index edd2974..14b217d 100644 --- a/ccl/ccltoken.c +++ b/ccl/ccltoken.c @@ -2,7 +2,13 @@ * Europagate, 1995 * * $Log: ccltoken.c,v $ - * Revision 1.2 1995-09-27 15:02:44 quinn + * Revision 1.4 1995-11-01 13:54:22 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:22 quinn @@ -47,7 +53,7 @@ const char *ccl_token_or = "or"; const char *ccl_token_not = "not"; const char *ccl_token_set = "set"; -struct ccl_token MDF *ccl_tokenize (const char *command) +struct ccl_token *ccl_tokenize (const char *command) { const char *cp = command; struct ccl_token *first = NULL; @@ -62,13 +68,13 @@ struct ccl_token MDF *ccl_tokenize (const char *command) } if (!first) { - first = last = malloc (sizeof (*first)); + first = last = xmalloc (sizeof (*first)); assert (first); last->prev = NULL; } else { - last->next = malloc (sizeof(*first)); + last->next = xmalloc (sizeof(*first)); assert (last->next); last->next->prev = last; last = last->next;