odr_choice_bias.
* OF THIS SOFTWARE.
*
* $Log: odr.h,v $
- * Revision 1.18 1996-07-26 13:38:14 quinn
+ * Revision 1.19 1996-10-08 12:58:08 adam
+ * New ODR function, odr_choice_enable_bias, to control behaviour of
+ * odr_choice_bias.
+ *
+ * Revision 1.18 1996/07/26 13:38:14 quinn
* Various smaller things. Gathered header-files.
*
* Revision 1.17 1995/11/08 17:41:27 quinn
int t_class; /* implicit tagging (-1==default tag) */
int t_tag;
+ int enable_bias; /* force choice enable flag */
int choice_bias; /* force choice */
int lenlen; /* force length-of-lenght (odr_setlen()) */
int odr_seek(ODR o, int whence, int offset);
int odr_dumpBER(FILE *f, char *buf, int len);
void odr_choice_bias(ODR o, int what);
+void odr_choice_enable_bias(ODR o, int mode);
int odr_total(ODR o);
char *odr_errmsg(int n);
Odr_oid *odr_getoidbystr(ODR o, char *str);
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr.c,v $
- * Revision 1.21 1996-07-26 13:38:19 quinn
+ * Revision 1.22 1996-10-08 12:58:17 adam
+ * New ODR function, odr_choice_enable_bias, to control behaviour of
+ * odr_choice_bias.
+ *
+ * Revision 1.21 1996/07/26 13:38:19 quinn
* Various smaller things. Gathered header-files.
*
* Revision 1.20 1995/11/08 17:41:32 quinn
r->ecb.can_grow = 1;
r->buflen = 0;
r->mem = nmem_create();
+ r->enable_bias = 1;
odr_reset(r);
return r;
}
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_choice.c,v $
- * Revision 1.11 1995-09-29 17:12:23 quinn
+ * Revision 1.12 1996-10-08 12:58:17 adam
+ * New ODR function, odr_choice_enable_bias, to control behaviour of
+ * odr_choice_bias.
+ *
+ * Revision 1.11 1995/09/29 17:12:23 quinn
* Smallish
*
* Revision 1.10 1995/09/27 15:02:58 quinn
void odr_choice_bias(ODR o, int what)
{
- o->choice_bias = what;
+ if (o->enable_bias)
+ o->choice_bias = what;
+}
+
+void odr_choice_enable_bias (ODR o, int mode)
+{
+ o->enable_bias = mode;
}