Added MarcXchange support.
[yaz-moved-to-github.git] / src / ber_tag.c
index 19c412f..b6f7644 100644 (file)
@@ -1,9 +1,16 @@
 /*
- * Copyright (c) 1995-2003, Index Data
+ * Copyright (C) 1995-2005, Index Data ApS
  * See the file LICENSE for details.
- * Sebastian Hammer, Adam Dickmeiss
  *
- * $Id: ber_tag.c,v 1.1 2003-10-27 12:21:30 adam Exp $
+ * $Id: ber_tag.c,v 1.4 2005-01-15 19:47:11 adam Exp $
+ */
+
+/** 
+ * \file ber_tag.c
+ * \brief Implements BER tags encoding and decoding
+ *
+ * This source file implements BER encoding and decoding of
+ * the tags.
  */
 #if HAVE_CONFIG_H
 #include <config.h>
@@ -55,7 +62,7 @@ int ber_tag(ODR o, void *p, int zclass, int tag, int *constructed, int opt,
             return -1;
 #ifdef ODR_DEBUG
         fprintf(stderr, "\n[class=%d,tag=%d,cons=%d,stackp=%d]", zclass, tag,
-                *constructed, o->stackp);
+                *constructed, o->op->stackp);
 #endif
         return 1;
         
@@ -84,7 +91,7 @@ int ber_tag(ODR o, void *p, int zclass, int tag, int *constructed, int opt,
             fprintf(stderr,
                     "\n[class=%d,tag=%d,cons=%d,stackp=%d]",
                     odr_ber_tag->lclass, odr_ber_tag->ltag,
-                    odr_ber_tag->lcons, o->stackp);
+                    odr_ber_tag->lcons, o->op->stackp);
 #endif
         }
         if (zclass == odr_ber_tag->lclass && tag == odr_ber_tag->ltag)