#!/usr/bin/tclsh
#
# yaz-comp: ASN.1 Compiler for YAZ
-# (c) Index Data 1996-2007
+# (c) Index Data 1996-2011
# See the file LICENSE for details.
#
lappend l "\tif (!odr_sequence_begin (o, p, sizeof(**p), 0))"
lappend l "\t\{"
- lappend l "\t\tif(o->direction == ODR_DECODE)"
+ lappend l "\t\tif (o->direction == ODR_DECODE)"
lappend l "\t\t\t*p = 0;"
lappend l "\t\treturn 0;"
lappend l "\t\}"
}
lappend j "\}"
lappend l "\t\treturn 1;"
- lappend l "\tif(o->direction == ODR_DECODE)"
+ lappend l "\tif (o->direction == ODR_DECODE)"
lappend l "\t\t*p = 0;"
lappend l "\treturn odr_missing(o, opt, name);"
return [list [join $l \n] [join $j \n]]
}
lappend l "\t\treturn 1;"
- lappend l "\tif(o->direction == ODR_DECODE)"
+ lappend l "\tif (o->direction == ODR_DECODE)"
lappend l "\t\t*p = 0;"
lappend l "\treturn odr_missing(o, opt, name);"
puts $file(outc) ""
puts $file(outc) " ${greeting} ${yc_version}"
puts $file(outc) "*/"
+
+ puts $file(outc) "\#if HAVE_CONFIG_H"
+ puts $file(outc) "\#include <config.h>"
+ puts $file(outc) "\#endif"
+
puts $file(outc) {}
puts $file(outh) "/** \\file $inf(h-file)"