X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dict%2Fdicttest.c;h=331f5f5d44cd0ee266964c9b38466d417de2ba4e;hb=07daef4fb241a9106fb995bb87a823708babcb10;hp=2dce332b389a208fc85fa270cd9f53f528035860;hpb=6c9fcd3b5d3108702fa1ffc92dab4ab6060f9a19;p=idzebra-moved-to-github.git diff --git a/dict/dicttest.c b/dict/dicttest.c index 2dce332..331f5f5 100644 --- a/dict/dicttest.c +++ b/dict/dicttest.c @@ -1,4 +1,4 @@ -/* $Id: dicttest.c,v 1.32 2005-01-15 19:38:21 adam Exp $ +/* $Id: dicttest.c,v 1.35 2005-09-13 11:51:05 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -26,7 +26,9 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include -#include +#include +#include +#include char *prog; static Dict dict; @@ -158,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) {