* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: ill.h,v 1.8 2005-06-25 15:46:02 adam Exp $
+ * $Id: ill.h,v 1.9 2006-04-20 20:50:51 adam Exp $
*/
+
+/**
+ * \file ill.h
+ * \brief ILL Package utilities
+ */
+
#ifndef ILL_H
#define ILL_H
/*
- * Copyright (C) 1995-2005, Index Data ApS
+ * Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: test.h,v 1.4 2006-01-30 14:02:06 adam Exp $
+ * $Id: test.h,v 1.5 2006-04-20 20:50:51 adam Exp $
*/
+/** \file test.h
+ \brief Unit Test for YAZ
+*/
+
#ifndef YAZ_TEST_H
#define YAZ_TEST_H
#include <yaz/yconfig.h>
#include <stdio.h>
+/** \brief Test OK */
#define YAZ_TEST_TYPE_OK 1
+/** \brief Test failed */
#define YAZ_TEST_TYPE_FAIL 2
+/** \brief boolean test. as only evaluated once */
#define YAZ_CHECK(as) { \
if (as) { \
yaz_check_print1(YAZ_TEST_TYPE_OK, __FILE__, __LINE__, #as); \
} \
}
+/** \brief equality test. left, right only evaluated once */
#define YAZ_CHECK_EQ(left, right) { \
int lval = left; \
int rval = right; \
} \
}
+/** \brief Macro to initialize the system (in start of main typically) */
#define YAZ_CHECK_INIT(argc, argv) yaz_check_init1(&argc, &argv)
+/** \brief Macro to terminate the system (end of main, normally) */
#define YAZ_CHECK_TERM yaz_check_term1(); return 0
YAZ_BEGIN_CDECL
+/** \brief used by macro. Should not be called directly */
YAZ_EXPORT void yaz_check_init1(int *argc, char ***argv);
+/** \brief used by macro. Should not be called directly */
YAZ_EXPORT void yaz_check_term1(void);
+/** \brief used by macro. Should not be called directly */
YAZ_EXPORT void yaz_check_print1(int type, const char *file, int line,
const char *expr);
+/** \brief used by macro. Should not be called directly */
YAZ_EXPORT void yaz_check_eq1(int type, const char *file, int line,
const char *left, const char *right,
int lval, int rval);
-
YAZ_END_CDECL
#endif
/*
- * Copyright (C) 1995-2005, Index Data ApS
+ * Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: xmlquery.h,v 1.3 2006-02-19 18:44:23 adam Exp $
+ * $Id: xmlquery.h,v 1.4 2006-04-20 20:50:51 adam Exp $
*/
+/** \file xmlquery.h
+ \brief Query / XML conversions
+*/
+
#ifndef YAZ_XMLQUERY_H
#define YAZ_XMLQUERY_H
# the next line restats using tclsh \
exec tclsh "$0" "$@"
#
-# $Id: charconv.tcl,v 1.12 2006-04-19 23:15:39 adam Exp $
+# $Id: charconv.tcl,v 1.13 2006-04-20 20:50:51 adam Exp $
proc usage {} {
puts {charconv.tcl: [-p prefix] [-s split] [-o ofile] file ... }
exit 1
}
-proc preamble_trie {ofilehandle} {
+proc preamble_trie {ofilehandle ifiles ofile} {
set f $ofilehandle
set totype {unsigned }
+ puts $f "/** \\file $ofile"
+ puts $f " \\brief Character conversion, generated from [lindex $ifiles 0]"
+ puts $f ""
+ puts $f " Generated automatically by charconv.tcl"
+ puts $f "*/"
puts $f "\#include <string.h>"
puts $f "
struct yaz_iconv_trie_flat {
}
set ofilehandle [open $ofile w]
-preamble_trie $ofilehandle
+preamble_trie $ofilehandle $ifiles $ofile
foreach ifile $ifiles {
readfile $ifile $ofilehandle $prefix $omits $reverse_map
# This file is part of the YAZ toolkit
-# Copyright (c) Index Data 1996-2005
+# Copyright (c) Index Data 1996-2006
# See the file LICENSE for details.
#
-# $Id: csvtodiag.tcl,v 1.2 2005-04-22 14:51:11 adam Exp $
+# $Id: csvtodiag.tcl,v 1.3 2006-04-20 20:50:51 adam Exp $
#
# Converts a CSV file with diagnostics to C+H file for easy
# maintenance
set cfile [open [lindex $ifiles 1] w]
set hfile [open [lindex $ifiles 2] w]
set lineno 0
- set preamble "/* Generated automatically by csvtodiag.tcl from [lindex $ifiles 0] */"
+ puts $cfile "/** \\file [lindex $ifiles 1]"
+ puts $hfile "/** \\file [lindex $ifiles 2]"
+ set preamble " \\brief Diagnostics: Generated by csvtodiag.tcl from [lindex $ifiles 0] */"
puts $cfile $preamble
puts $cfile "
#include \"diag-entry.h\"
/*
- * Copyright (C) 1995-2005, Index Data ApS
+ * Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: mime.c,v 1.1 2006-03-15 13:32:05 adam Exp $
+ * $Id: mime.c,v 1.2 2006-04-20 20:50:51 adam Exp $
*/
+/** \file mime.c
+ \brief Small utility to manage MIME types
+*/
+
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#include <string.h>
/*
- * Copyright (C) 1995-2005, Index Data ApS
+ * Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: mime.h,v 1.1 2006-03-15 13:32:05 adam Exp $
+ * $Id: mime.h,v 1.2 2006-04-20 20:50:51 adam Exp $
*/
+
+/** \file mime.h
+ \brief Small utility to manage MIME types
+*/
+
#ifndef MIME_H
#define MIME_H
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: test.c,v 1.4 2006-01-30 14:02:07 adam Exp $
+ * $Id: test.c,v 1.5 2006-04-20 20:50:51 adam Exp $
*/
+
+/** \file test.c
+ \brief Unit Test for YAZ
+*/
+
#if HAVE_CONFIG_H
#include <config.h>
#endif
/*
- * Copyright (C) 1995-2005, Index Data ApS
+ * Copyright (C) 1995-2006, Index Data ApS
* All rights reserved.
*
- * $Id: xmlquery.c,v 1.7 2006-04-19 10:05:03 adam Exp $
+ * $Id: xmlquery.c,v 1.8 2006-04-20 20:50:51 adam Exp $
*/
/** \file xmlquery.c
/*
- * Copyright (C) 1995-2005, Index Data ApS
+ * Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: z3950oid.c,v 1.4 2005-06-25 15:46:06 adam Exp $
+ * $Id: z3950oid.c,v 1.5 2006-04-20 20:50:51 adam Exp $
*/
+/** \file z3950oid.c
+ \brief Z3950 OID conversion utilities
+*/
+
#if HAVE_CONFIG_H
#include <config.h>
#endif