projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use Odr_oid for OIDs. Require YAZ 3.0.2 or later.
[idzebra-moved-to-github.git]
/
dict
/
dicttest.c
diff --git
a/dict/dicttest.c
b/dict/dicttest.c
index
c5fa828
..
93bf999
100644
(file)
--- a/
dict/dicttest.c
+++ b/
dict/dicttest.c
@@
-1,6
+1,6
@@
-/* $Id: dicttest.c,v 1.30 2004-11-19 10:26:55 heikki Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
- Index Data Aps
+/* $Id: dicttest.c,v 1.38 2007-01-15 15:10:15 adam Exp $
+ Copyright (C) 1995-2007
+ Index Data ApS
This file is part of the Zebra server.
This file is part of the Zebra server.
@@
-15,20
+15,20
@@
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
-along with Zebra; see the file LICENSE.zebra. If not, write to the
-Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
-*/
-
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
-#include <dict.h>
-#include <zebrautl.h>
+#include <idzebra/dict.h>
+#include <idzebra/util.h>
+#include <idzebra/res.h>
+#include <yaz/yaz-util.h>
char *prog;
static Dict dict;
char *prog;
static Dict dict;
@@
-160,12
+160,14
@@
int main (int argc, char **argv)
yaz_log (YLOG_FATAL, "no config and/or dictionary specified");
exit (1);
}
yaz_log (YLOG_FATAL, "no config and/or dictionary specified");
exit (1);
}
- my_resource = res_open (config, 0, 0);
+ my_resource = res_open(0, 0);
if (!my_resource)
{
yaz_log (YLOG_FATAL, "cannot open resource `%s'", config);
exit (1);
}
if (!my_resource)
{
yaz_log (YLOG_FATAL, "cannot open resource `%s'", config);
exit (1);
}
+ res_read_file(my_resource, config);
+
bfs = bfs_create (res_get(my_resource, "register"), 0);
if (!bfs)
{
bfs = bfs_create (res_get(my_resource, "register"), 0);
if (!bfs)
{
@@
-317,3
+319,11
@@
int main (int argc, char **argv)
res_close (my_resource);
return 0;
}
res_close (my_resource);
return 0;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+