Modified function heads & prototypes.
[yaz-moved-to-github.git] / odr / odr_tag.c
1 /*
2  * Copyright (c) 1995, Index Data
3  * See the file LICENSE for details.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: odr_tag.c,v $
7  * Revision 1.4  1995-09-27 15:03:00  quinn
8  * Modified function heads & prototypes.
9  *
10  * Revision 1.3  1995/05/16  08:51:00  quinn
11  * License, documentation, and memory fixes
12  *
13  * Revision 1.2  1995/03/08  12:12:31  quinn
14  * Added better error checking.
15  *
16  * Revision 1.1  1995/02/02  16:21:54  quinn
17  * First kick.
18  *
19  */
20
21 #include <odr.h>
22
23 int MDF odr_implicit_settag(ODR o, int class, int tag)
24 {
25     if (o->error)
26         return 0;
27     if (o->t_class < 0)
28     {
29         o->t_class = class;
30         o->t_tag = tag;
31     }
32     return 1;
33 }