X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fodr_choice.c;h=941476f76b083e9e19cad84ff90b006980566c51;hp=c27ea1592525caee172c1a24f32fd6376eb2fa1c;hb=c21a01f2a1dfff7f62636b251d4d129a9f0fbeec;hpb=b7c6d3740131ba03800c5c2cc935dc2626d12bb3 diff --git a/src/odr_choice.c b/src/odr_choice.c index c27ea15..941476f 100644 --- a/src/odr_choice.c +++ b/src/odr_choice.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2005, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. - * - * $Id: odr_choice.c,v 1.6 2005-08-11 14:21:55 adam Exp $ */ /** @@ -19,7 +17,7 @@ int odr_choice(ODR o, Odr_arm arm[], void *p, void *whichp, const char *name) { - int i, cl = -1, tg, cn, *which = (int *)whichp, bias = o->choice_bias; + int i, cl = -1, tg, cn, *which = (int *)whichp, bias = o->op->choice_bias; if (o->error) return 0; @@ -31,7 +29,7 @@ int odr_choice(ODR o, Odr_arm arm[], void *p, void *whichp, *which = -1; *(char**)p = 0; } - o->choice_bias = -1; + o->op->choice_bias = -1; if (o->direction == ODR_PRINT) { @@ -91,17 +89,18 @@ int odr_choice(ODR o, Odr_arm arm[], void *p, void *whichp, void odr_choice_bias(ODR o, int what) { - if (o->enable_bias) - o->choice_bias = what; + if (o->op->enable_bias) + o->op->choice_bias = what; } void odr_choice_enable_bias (ODR o, int mode) { - o->enable_bias = mode; + o->op->enable_bias = mode; } /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab