X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zutil%2Fquery.c;h=d0fd48e10ea0c042476056a7e7b916c090239461;hb=03c1d6e9c2c2c0bb2ee01e38d7f464a311bfe9e9;hp=eb5e5e653ee6ea20788d3c6afa266b723977a841;hpb=161ec45b40a3ab08e08946c9654ab6fea4604760;p=yaz-moved-to-github.git diff --git a/zutil/query.c b/zutil/query.c index eb5e5e6..d0fd48e 100644 --- a/zutil/query.c +++ b/zutil/query.c @@ -1,10 +1,16 @@ /* - * Copyright (c) 1995, Index Data + * Copyright (c) 1995-1999, Index Data * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: query.c,v $ - * Revision 1.1 1999-06-08 10:10:16 adam + * Revision 1.3 1999-12-16 23:36:19 adam + * Implemented ILL protocol. Minor updates ASN.1 compiler. + * + * Revision 1.2 1999/06/09 14:01:33 adam + * Fixed for compiled ASN.1. + * + * Revision 1.1 1999/06/08 10:10:16 adam * New sub directory zutil. Moved YAZ Compiler to be part of YAZ tree. * * Revision 1.3 1996/01/02 11:46:56 quinn @@ -23,8 +29,8 @@ #include #include -#include -#include +#include +#include static Z_Complex *makecomplex(ODR o, char **buf); static Z_Operand *makesimple(ODR o, char **buf); @@ -61,8 +67,14 @@ static Z_Operand *makesimple(ODR o, char **buf) (*buf)++; r->which = Z_Operand_APT; r->u.attributesPlusTerm = t = odr_malloc(o, sizeof(*t)); +#ifdef ASN_COMPILED + t->attributes = odr_malloc(o, sizeof(*t)); + t->attributes->num_attributes = 0; + t->attributes->attributes = 0; +#else t->num_attributes = 0; t->attributeList = 0; +#endif t->term = odr_malloc(o, sizeof(*t->term)); t->term->which = Z_Term_general; t->term->u.general = odr_malloc(o, sizeof(Odr_oct));