* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: admin.c,v 1.21 2005-06-25 15:46:01 adam Exp $
+ * $Id: admin.c,v 1.22 2006-10-04 16:59:33 mike Exp $
*/
#include <stdio.h>
#include "admin.h"
/* Helper functions to get to various statics in the client */
-ODR getODROutputStream();
+ODR getODROutputStream(void);
extern char *databaseNames[];
extern int num_databaseNames;
/* Copyright (C) 2006, Index Data ApS
* See the file LICENSE for details.
- * $Id: nfa.h,v 1.10 2006-08-11 12:43:52 adam Exp $
+ * $Id: nfa.h,v 1.11 2006-10-04 16:59:33 mike Exp $
*/
/**
* \return a pointer to the newly created NFA
*
* */
-yaz_nfa *yaz_nfa_init();
+yaz_nfa *yaz_nfa_init(void);
/** \brief Destroy the whole thing */
void yaz_nfa_destroy(
* Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: test.h,v 1.9 2006-07-07 13:39:02 heikki Exp $
+ * $Id: test.h,v 1.10 2006-10-04 16:59:33 mike Exp $
*/
/** \file test.h
#include <stdio.h>
/** \brief Get the verbosity level */
-int yaz_test_get_verbosity();
+int yaz_test_get_verbosity(void);
/** \brief Test OK */
#define YAZ_TEST_TYPE_OK 1
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: test.c,v 1.10 2006-07-07 13:39:04 heikki Exp $
+ * $Id: test.c,v 1.11 2006-10-04 16:59:33 mike Exp $
*/
/** \file test.c
static const char *test_prog = 0;
static int log_tests = 0;
-static FILE *get_file()
+static FILE *get_file(void)
{
if (test_fout)
return test_fout;
/* Copyright (C) 2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: nfatest1.c,v 1.6 2006-05-10 13:58:47 heikki Exp $
+ * $Id: nfatest1.c,v 1.7 2006-10-04 16:59:34 mike Exp $
*
*/
}
}
-void construction_test() {
+void construction_test(void) {
yaz_nfa* n= yaz_nfa_init();
yaz_nfa_char *cp, *cp1, *cp2;
yaz_nfa_state *s, *s0, *s1, *s2, *s3, *s4, *s5;
yaz_nfa_destroy(n);
}
-void converter_test() {
+void converter_test(void) {
yaz_nfa* n= yaz_nfa_init();
yaz_nfa_converter *c1, *c2, *c3;
yaz_nfa_char str1[]={'a','b','c'};
}
-void high_level_test() {
+void high_level_test(void) {
NMEM nmem=nmem_create();
yaz_nfa_char from1[] = {'f','o','o','b','a','r'};
yaz_nfa_char to1[] = {'f','u','b','a','r'};
/* Copyright (C) 2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: nfaxmltest1.c,v 1.7 2006-07-14 13:06:38 heikki Exp $
+ * $Id: nfaxmltest1.c,v 1.8 2006-10-04 16:59:34 mike Exp $
*
*/
/** \brief Test parsing of a minimal, valid xml string */
-void test1() {
+void test1(void) {
char *xmlstr = "<ruleset> "
"<rule> "
" <fromstring>foo</fromstring> "
/** \brief Test parsing of a minimal, invalid xml string */
-void test2() {
+void test2(void) {
yaz_nfa *nfa;
char *xmlstr = "<ruleset> "
"<rule> "
}
/** \brief Test parsing a few minimal xml files */
-void test3() {
+void test3(void) {
char *goodfilenames[] = {
"nfaxml-simple.xml",
"nfaxml-main.xml", /* x-includes nfaxml-include */
}
/** \brief Test parsing of a few minimal xml strings, with logical errors */
-void test4() {
+void test4(void) {
yaz_nfa *nfa;
char *xmls[] = {
/*a*/"<missingruleset> <foo/> </missingruleset>",
}
} /* test4 */
-static void test5() {
+static void test5(void) {
struct conv_test {
unsigned char *name;
int expresult;
* Copyright (C) 2005-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: tst_record_conv.c,v 1.10 2006-08-01 09:28:04 adam Exp $
+ * $Id: tst_record_conv.c,v 1.11 2006-10-04 16:59:34 mike Exp $
*
*/
#include <yaz/record_conv.h>
return ret;
}
-static void tst_configure()
+static void tst_configure(void)
{
YAZ_CHECK(conv_configure_test("<bad", "xmlParseMemory", 0));
YAZ_CHECK(conv_configure_test("<bad/>", "Missing 'convert' element", 0));
return ret;
}
-static void tst_convert1()
+static void tst_convert1(void)
{
yaz_record_conv_t p = 0;
const char *marcxml_rec =
yaz_record_conv_destroy(p);
}
-static void tst_convert2()
+static void tst_convert2(void)
{
yaz_record_conv_t p = 0;
const char *marcxml_rec =
* Copyright (C) 2005-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: tst_retrieval.c,v 1.6 2006-07-06 10:17:55 adam Exp $
+ * $Id: tst_retrieval.c,v 1.7 2006-10-04 16:59:34 mike Exp $
*
*/
#include <yaz/retrieval.h>
return ret;
}
-static void tst_configure()
+static void tst_configure(void)
{
YAZ_CHECK(conv_configure_test("<bad",
"xmlParseMemory", 0));
* Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: tsticonv.c,v 1.22 2006-08-30 20:14:56 adam Exp $
+ * $Id: tsticonv.c,v 1.23 2006-10-04 16:59:34 mike Exp $
*/
#if HAVE_CONFIG_H
"\xe5" "\xe5",
0 };
-static void tst_marc8_to_ucs4b()
+static void tst_marc8_to_ucs4b(void)
{
yaz_iconv_t cd = yaz_iconv_open("UCS4", "MARC8");
YAZ_CHECK(cd);
yaz_iconv_close(cd);
}
-static void tst_ucs4b_to_utf8()
+static void tst_ucs4b_to_utf8(void)
{
yaz_iconv_t cd = yaz_iconv_open("UTF8", "UCS4");
YAZ_CHECK(cd);
return 1;
}
-static void tst_marc8_to_utf8()
+static void tst_marc8_to_utf8(void)
{
yaz_iconv_t cd = yaz_iconv_open("UTF-8", "MARC8");
yaz_iconv_close(cd);
}
-static void tst_marc8s_to_utf8()
+static void tst_marc8s_to_utf8(void)
{
yaz_iconv_t cd = yaz_iconv_open("UTF-8", "MARC8s");
}
-static void tst_marc8_to_latin1()
+static void tst_marc8_to_latin1(void)
{
yaz_iconv_t cd = yaz_iconv_open("ISO-8859-1", "MARC8");
yaz_iconv_close(cd);
}
-static void tst_utf8_to_marc8()
+static void tst_utf8_to_marc8(void)
{
yaz_iconv_t cd = yaz_iconv_open("MARC8", "UTF-8");
}
-static void tst_latin1_to_marc8()
+static void tst_latin1_to_marc8(void)
{
yaz_iconv_t cd = yaz_iconv_open("MARC8", "ISO-8859-1");
yaz_iconv_close(cd);
}
-static void tst_utf8_codes()
+static void tst_utf8_codes(void)
{
YAZ_CHECK(utf8_check(3));
YAZ_CHECK(utf8_check(127));
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: tstodrstack.c,v 1.4 2006-01-29 21:59:13 adam Exp $
+ * $Id: tstodrstack.c,v 1.5 2006-10-04 16:59:34 mike Exp $
*
*/
#include <stdlib.h>
#include <yaz/test.h>
/** \brief build a 100 level query */
-void test1()
+void test1(void)
{
ODR odr = odr_createmem(ODR_ENCODE);
YAZ_PQF_Parser parser = yaz_pqf_create();
}
/** \brief build a circular referenced query */
-void test2()
+void test2(void)
{
ODR odr = odr_createmem(ODR_ENCODE);
YAZ_PQF_Parser parser = yaz_pqf_create();
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: tstpquery.c,v 1.2 2006-04-01 11:47:41 adam Exp $
+ * $Id: tstpquery.c,v 1.3 2006-10-04 16:59:34 mike Exp $
*/
#include <stdlib.h>
return res;
}
-static void tst()
+static void tst(void)
{
YAZ_CHECK(expect_pqf("a", "@attrset Bib-1 a", YAZ_PQF_ERROR_NONE));
YAZ_CHECK(expect_pqf("@attr 1=4 a", "@attrset Bib-1 @attr 1=4 a", YAZ_PQF_ERROR_NONE));
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: tstsoap1.c,v 1.7 2006-07-06 10:17:55 adam Exp $
+ * $Id: tstsoap1.c,v 1.8 2006-10-04 16:59:34 mike Exp $
*/
#include <stdlib.h>
#endif
#include <yaz/test.h>
-void tst()
+void tst(void)
{
#if YAZ_HAVE_XML2
xmlChar *buf_out;
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: tstxmlquery.c,v 1.12 2006-07-07 12:09:05 marc Exp $
+ * $Id: tstxmlquery.c,v 1.13 2006-10-04 16:59:34 mike Exp $
*/
#include <stdlib.h>
return status;
}
-static void tst()
+static void tst(void)
{
YAZ_CHECK_EQ(pqf2xml_text("@attr 1=4 bad query", "", 0), PQF_FAILED);
#if YAZ_HAVE_XML2
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: yaz-xmlquery.c,v 1.3 2006-07-06 10:17:55 adam Exp $
+ * $Id: yaz-xmlquery.c,v 1.4 2006-10-04 16:59:34 mike Exp $
*/
#include <stdlib.h>
}
#endif
-void usage()
+void usage(void)
{
fprintf(stderr, "%s [-p pqf] [-x xmlfile]\n", prog);
fprintf(stderr, " -p pqf reads pqf. write xml to stdout\n");
/*
- * $Id: zoom-benchmark.c,v 1.14 2006-09-18 09:40:05 marc Exp $
+ * $Id: zoom-benchmark.c,v 1.15 2006-10-04 16:59:35 mike Exp $
*
* Asynchronous multi-target client doing search and piggyback retrieval
*/
-void init_statics()
+void init_statics(void)
{
int i;
char nullstring[1] = "";
return ptime->usec;
}
-void print_option_error()
+void print_option_error(void)
{
fprintf(stderr, "zoom-benchmark: Call error\n");
fprintf(stderr, "zoom-benchmark -h host:port -q pqf-query "
print_option_error();
}
-void print_table_header()
+void print_table_header(void)
{
if (parameters.gnuplot)
printf("#");
-/* $Id: zoomtst9.c,v 1.3 2006-08-24 13:19:44 adam Exp $ */
+/* $Id: zoomtst9.c,v 1.4 2006-10-04 16:59:35 mike Exp $ */
/** \file zoomtst9.c
\brief Extended Service Update
#include <yaz/xmalloc.h>
#include <yaz/zoom.h>
-static void usage()
+static void usage(void)
{
fprintf(stderr, "usage:\n"
"zoomtst9 target [insert|delete|replace|update] id1 rec1 "