X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dict%2Fdicttest.c;h=331f5f5d44cd0ee266964c9b38466d417de2ba4e;hb=07daef4fb241a9106fb995bb87a823708babcb10;hp=c5fa8282a3e19c095f37c7f17863845971175514;hpb=5437b50633032595afe6f87dc0f989bc92a5aea8;p=idzebra-moved-to-github.git diff --git a/dict/dicttest.c b/dict/dicttest.c index c5fa828..331f5f5 100644 --- 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.35 2005-09-13 11:51:05 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -20,15 +20,15 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - - #include #include #include #include -#include -#include +#include +#include +#include +#include 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); } - 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); } + res_read_file(my_resource, config); + bfs = bfs_create (res_get(my_resource, "register"), 0); if (!bfs) {