Smallish
[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.5  1995-09-29 17:12:27  quinn
8  * Smallish
9  *
10  * Revision 1.4  1995/09/27  15:03:00  quinn
11  * Modified function heads & prototypes.
12  *
13  * Revision 1.3  1995/05/16  08:51:00  quinn
14  * License, documentation, and memory fixes
15  *
16  * Revision 1.2  1995/03/08  12:12:31  quinn
17  * Added better error checking.
18  *
19  * Revision 1.1  1995/02/02  16:21:54  quinn
20  * First kick.
21  *
22  */
23
24 #include <odr.h>
25
26 int odr_implicit_settag(ODR o, int class, int tag)
27 {
28     if (o->error)
29         return 0;
30     if (o->t_class < 0)
31     {
32         o->t_class = class;
33         o->t_tag = tag;
34     }
35     return 1;
36 }