X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=asn%2Fprt-ext.c;h=aac6bfc5d2a22c06fc671fb1c89683fd98d6fa05;hp=7c56703d483e6a1442aa6729ff084929e6b88af4;hb=bf4149c63ad2e11429e302a89f472de52b4d7ce8;hpb=73664b466cb0c5e9478b4af7c5d4ebed1f2db49e diff --git a/asn/prt-ext.c b/asn/prt-ext.c index 7c56703..aac6bfc 100644 --- a/asn/prt-ext.c +++ b/asn/prt-ext.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: prt-ext.c,v $ - * Revision 1.12 1997-04-30 08:52:02 quinn + * Revision 1.13 1997-05-14 06:53:22 adam + * C++ support. + * + * Revision 1.12 1997/04/30 08:52:02 quinn * Null * * Revision 1.11 1996/10/10 12:35:13 quinn @@ -127,14 +130,14 @@ int z_External(ODR o, Z_External **p, int opt) (oid = oid_getentbyoid((*p)->direct_reference)) && (type = z_ext_getentbyref(oid->value))) { - int class, tag, cons; + int zclass, tag, cons; /* * We know it. If it's represented as an ASN.1 type, bias the CHOICE. */ - if (!odr_peektag(o, &class, &tag, &cons)) + if (!odr_peektag(o, &zclass, &tag, &cons)) return opt && odr_ok(o); - if (class == ODR_CONTEXT && tag == 0 && cons == 1) + if (zclass == ODR_CONTEXT && tag == 0 && cons == 1) odr_choice_bias(o, type->what); } return