X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fapi%2Ftest_sort3.c;h=716fab044eb23b5967ba81ab9d42f2779f8d66eb;hb=250de4ed23a44f5eb3552db317eef0d0fbe3265c;hp=aabf73dd5a59f2fc34976ea4a713694283e8a1d3;hpb=af102b1fb451ba27bfa7343528c4240b3ab3a80b;p=idzebra-moved-to-github.git diff --git a/test/api/test_sort3.c b/test/api/test_sort3.c index aabf73d..716fab0 100644 --- a/test/api/test_sort3.c +++ b/test/api/test_sort3.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1995-2008 Index Data + Copyright (C) 2004-2013 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 @@ -17,10 +17,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -/** \file +/** \file \brief sort using various sortindex types */ +#if HAVE_CONFIG_H +#include +#endif #include #include "testlib.h" @@ -32,7 +35,7 @@ const char *myrec[] = { "\n", /* 3 */ - "\n" + "\n" " My x title\n" " B\n" "\n", @@ -43,7 +46,7 @@ const char *myrec[] = { " A\n" "\n" , 0} ; - + static void tst_sortindex(int argc, char **argv, const char *type) { zint ids[5]; @@ -55,7 +58,7 @@ static void tst_sortindex(int argc, char **argv, const char *type) res_set(res, "sortindex", type); zh = zebra_open(zs, res); - + YAZ_CHECK(tl_init_data(zh, myrec)); if (strcmp(type, "m")) @@ -105,6 +108,7 @@ TL_MAIN /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab