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
Test for solr sort specs
[yaz-moved-to-github.git]
/
src
/
oid_db.c
diff --git
a/src/oid_db.c
b/src/oid_db.c
index
5d9297e
..
7713cc8
100644
(file)
--- a/
src/oid_db.c
+++ b/
src/oid_db.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 1995-2012 Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-13,7
+13,6
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
#include <yaz/yaz-util.h>
#include <yaz/odr.h>
#include <yaz/yaz-util.h>
#include <yaz/odr.h>
@@
-120,7
+119,7
@@
char *oid_name_to_dotstring(oid_class oclass, const char *name, char *oid_buf)
int yaz_oid_is_iso2709(const Odr_oid *oid)
{
if (oid_oidlen(oid) == 6 && oid[0] == 1 && oid[1] == 2
int yaz_oid_is_iso2709(const Odr_oid *oid)
{
if (oid_oidlen(oid) == 6 && oid[0] == 1 && oid[1] == 2
- && oid[2] == 840 && oid[3] == 10003 && oid[4] == 5
+ && oid[2] == 840 && oid[3] == 10003 && oid[4] == 5
&& oid[5] <= 29 && oid[5] != 16)
return 1;
return 0;
&& oid[5] <= 29 && oid[5] != 16)
return 1;
return 0;
@@
-195,7
+194,7
@@
void yaz_oid_trav(yaz_oid_db_t oid_db,
for (; oid_db; oid_db = oid_db->next)
{
struct yaz_oid_entry *e = get_entries(oid_db);
for (; oid_db; oid_db = oid_db->next)
{
struct yaz_oid_entry *e = get_entries(oid_db);
-
+
for (; e->name; e++)
func(e->oid, e->oclass, e->name, client_data);
}
for (; e->name; e++)
func(e->oid, e->oclass, e->name, client_data);
}