projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix sample PQF
[yaz-moved-to-github.git]
/
odr
/
odr_util.c
diff --git
a/odr/odr_util.c
b/odr/odr_util.c
index
5f7d7e5
..
5da4088
100644
(file)
--- a/
odr/odr_util.c
+++ b/
odr/odr_util.c
@@
-1,8
+1,8
@@
/*
/*
- * Copyright (c) 1995-2002, Index Data
+ * Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
* See the file LICENSE for details.
*
- * $Id: odr_util.c,v 1.21 2002-07-25 12:51:08 adam Exp $
+ * $Id: odr_util.c,v 1.25 2003-05-24 19:20:14 adam Exp $
*/
#if HAVE_CONFIG_H
#include <config.h>
*/
#if HAVE_CONFIG_H
#include <config.h>
@@
-81,4
+81,14
@@
Odr_oid *odr_getoidbystr(ODR o, const char *str)
return odr_getoidbystr_nmem (o->mem, str);
}
return odr_getoidbystr_nmem (o->mem, str);
}
-
+int odr_missing(ODR o, int opt, const char *name)
+{
+ if (o->error)
+ return 0;
+ if (!opt)
+ {
+ odr_seterror(o, OREQUIRED, 53);
+ odr_setelement(o, name);
+ }
+ return opt;
+}