X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fcsvtodiag.tcl;h=ce1db5fdfafb4fbb01f76b2cab2652119b2f4f49;hp=3224647958a939be210b88f70b43c3fc805e24d5;hb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a;hpb=abd3118d2280ffe01b4ff3a7b36428b7b5c91827 diff --git a/src/csvtodiag.tcl b/src/csvtodiag.tcl index 3224647..ce1db5f 100644 --- a/src/csvtodiag.tcl +++ b/src/csvtodiag.tcl @@ -1,8 +1,7 @@ # This file is part of the YAZ toolkit -# Copyright (c) Index Data 1996-2006 +# Copyright (c) Index Data 1996-2007 # See the file LICENSE for details. # -# $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 @@ -21,6 +20,10 @@ proc csvtodiag {ifiles name alias} { puts $hfile "/** \\file [lindex $ifiles 2]" set preamble " \\brief Diagnostics: Generated by csvtodiag.tcl from [lindex $ifiles 0] */" puts $cfile $preamble + puts $cfile "\#ifdef HAVE_CONFIG_H" + puts $cfile "\#include " + puts $cfile "\#endif" + puts $cfile " #include \"diag-entry.h\" \#include \"[lindex $ifiles 2]\"