X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dict%2Fdicttest.c;h=f1114fcd9c6f15066b470f0bfabec96123ff96f1;hb=861a4414a4a0d1d1076f97fe8105b0a3a3ab4a31;hp=0138e2c38035c5292f63e727f904407b5f715097;hpb=05b9b8ed020c5bfa48a913d6a2e2b50ddf1bab8e;p=idzebra-moved-to-github.git diff --git a/dict/dicttest.c b/dict/dicttest.c index 0138e2c..f1114fc 100644 --- a/dict/dicttest.c +++ b/dict/dicttest.c @@ -1,6 +1,6 @@ -/* $Id: dicttest.c,v 1.31 2004-12-08 12:23:08 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 - Index Data Aps +/* $Id: dicttest.c,v 1.37 2006-08-14 10:40:09 adam Exp $ + Copyright (C) 1995-2006 + Index Data ApS This file is part of the Zebra server. @@ -15,9 +15,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 +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) { @@ -315,3 +319,11 @@ int main (int argc, char **argv) res_close (my_resource); return 0; } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +