Updated.
[yaz-moved-to-github.git] / asn / prt-ext.c
index 0a3bc39..4dda9d6 100644 (file)
@@ -1,10 +1,19 @@
 /*
- * Copyright (c) 1995, Index Data.
+ * Copyright (c) 1995-1998, Index Data.
  * See the file LICENSE for details.
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: prt-ext.c,v $
- * Revision 1.11  1996-10-10 12:35:13  quinn
+ * Revision 1.14  1998-01-05 09:04:57  adam
+ * Fixed bugs in encoders/decoders - Not operator (!) missing.
+ *
+ * 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
  * Added Update extended service.
  *
  * Revision 1.10  1996/10/09  15:54:55  quinn
@@ -106,7 +115,7 @@ int z_External(ODR o, Z_External **p, int opt)
        {ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_OPAC, z_OPACRecord},
        {ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_searchResult1,
            z_SearchInfoReport},
-       {ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_update},
+       {ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_update, z_IUUpdate},
        {-1, -1, -1, -1, 0}
     };
 
@@ -124,14 +133,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