X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=dict%2Fdicttest.c;h=8221f938d3213e849769d355508c0f0e7d63f21b;hp=2dce332b389a208fc85fa270cd9f53f528035860;hb=6a0f9234f945bc4956e2bcef75f715661a9eba9a;hpb=6c9fcd3b5d3108702fa1ffc92dab4ab6060f9a19 diff --git a/dict/dicttest.c b/dict/dicttest.c index 2dce332..8221f93 100644 --- a/dict/dicttest.c +++ b/dict/dicttest.c @@ -1,8 +1,5 @@ -/* $Id: dicttest.c,v 1.32 2005-01-15 19:38:21 adam Exp $ - Copyright (C) 1995-2005 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 1994-2009 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -15,9 +12,9 @@ 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 -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 @@ -26,7 +23,9 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include -#include +#include +#include +#include char *prog; static Dict dict; @@ -158,12 +157,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) { @@ -315,3 +316,12 @@ int main (int argc, char **argv) res_close (my_resource); return 0; } +/* + * Local variables: + * c-basic-offset: 4 + * c-file-style: "Stroustrup" + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +