X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=retrieval%2Fd1_espec.c;h=c157ad22b4448e253eefea2f5af11707858a3fea;hb=086436151f45e51a855c748010a95615bc5e30a0;hp=975807978beccd22b916395db81f5488f7bf81c7;hpb=4ae699c927bc26f3550d1a8ca911e8d1fe75dbfc;p=yaz-moved-to-github.git diff --git a/retrieval/d1_espec.c b/retrieval/d1_espec.c index 9758079..c157ad2 100644 --- a/retrieval/d1_espec.c +++ b/retrieval/d1_espec.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: d1_espec.c,v $ - * Revision 1.5 1996-01-02 08:57:44 quinn + * Revision 1.6 1996-07-06 19:58:34 quinn + * System headerfiles gathered in yconfig + * + * Revision 1.5 1996/01/02 08:57:44 quinn * Changed enums in the ASN.1 .h files to #defines. Changed oident.class to oclass * * Revision 1.4 1995/12/05 11:16:10 quinn @@ -78,6 +81,12 @@ static Z_Variant *read_variant(int argc, char **argv, ODR o) t->which = Z_Triple_null; t->value.null = ODR_NULLVAL; } + else if (isdigit(*value)) + { + t->which = Z_Triple_integer; + t->value.integer = odr_malloc(o, sizeof(*t->value.integer)); + *t->value.integer = atoi(value); + } else { t->which = Z_Triple_internationalString;