Fix documentation of of chr's equivalent directive ZEB-672
[idzebra-moved-to-github.git] / test / api / test_result_sets.c
index c1badec..75f5dc1 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the Zebra server.
-   Copyright (C) 1994-2009 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);
 
@@ -71,7 +74,7 @@ static void tst(int argc, char **argv)
            exit(1);
        }
         yaz_pqf_destroy(parser);
-        zebra_deleteResultSet(zh, Z_DeleteRequest_list,
+        zebra_deleteResultSet(zh, Z_DeleteResultSetRequest_list,
                               1, &setnamep, &status);
         odr_destroy(odr_input);
         odr_destroy(odr_output);
@@ -86,6 +89,7 @@ TL_MAIN
 /*
  * Local variables:
  * c-basic-offset: 4
+ * c-file-style: "Stroustrup"
  * indent-tabs-mode: nil
  * End:
  * vim: shiftwidth=4 tabstop=8 expandtab