Fix documentation of of chr's equivalent directive ZEB-672
[idzebra-moved-to-github.git] / test / api / test_result_sets.c
index 1fd3adc..75f5dc1 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the Zebra server.
-   Copyright (C) 1994-2011 Index Data
+   Copyright (C) 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
@@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
 /* Creates a few result sets */
 
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include "testlib.h"
 
 const char *myrec[] ={
@@ -40,10 +43,10 @@ static void tst(int argc, char **argv)
         char setname[20];
         char *setnamep = setname;
         int status;
-        ODR odr_input = odr_createmem (ODR_DECODE);    
-        ODR odr_output = odr_createmem (ODR_ENCODE);    
+        ODR odr_input = odr_createmem (ODR_DECODE);
+        ODR odr_output = odr_createmem (ODR_ENCODE);
         YAZ_PQF_Parser parser = yaz_pqf_create();
-        Z_RPNQuery *query = yaz_pqf_parse(parser, odr_input, 
+        Z_RPNQuery *query = yaz_pqf_parse(parser, odr_input,
                                           "@attr 1=4 my");
         zint hits;
         if (zebra_begin_trans (zh, 1) != ZEBRA_OK)
@@ -56,7 +59,7 @@ static void tst(int argc, char **argv)
            fprintf(stderr, "zebra_begin_trans failed\n");
            exit(1);
        }
-        
+
         sprintf(setname, "s%d", i+1);
         zebra_search_RPN (zh, odr_input, query, setname, &hits);