From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- support/dktools/htmlbook.c | 2699 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2699 insertions(+) create mode 100644 support/dktools/htmlbook.c (limited to 'support/dktools/htmlbook.c') diff --git a/support/dktools/htmlbook.c b/support/dktools/htmlbook.c new file mode 100644 index 0000000000..4cd27ad7d3 --- /dev/null +++ b/support/dktools/htmlbook.c @@ -0,0 +1,2699 @@ +/* + WARNING: This file was generated by dkct. + Changes you make here will be lost if dkct is run again! + You should modify the original source and run dkct on it. + Original source: htmlbook.ctr +*/ + +/* +Copyright (C) 2013-2017, Dirk Krause + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above opyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +* Neither the name of the author nor the names of contributors may be used + to endorse or promote products derived from this software without specific + prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/** @file htmlbook.c The htmlbook module. +*/ + + +#line 372 "htmlbook.ctr" + +#include "dk3all.h" +#if 0 +#include "dkt-version.h" +#endif +#include "dk4vers.h" +#include "htmlbook.h" + + +/* Synopsis: + htmlbook -h | --help + htmlbook -v | --version + htmlbook -L | --license + htmlbook [] + + Options: +*/ + + + + +#line 392 "htmlbook.ctr" + + + +/** @defgroup hbcmd Commands for htmlbook. */ +/**@{*/ +/** Print help. +*/ +#define HB_CMD_HELP 1 +/** Print version number. +*/ +#define HB_CMD_VERSION 2 +/** Print license terms. +*/ +#define HB_CMD_LICENSE 4 +/**@}*/ + + + +/** Version information. +*/ +static dkChar const *hb_version[] = { + dkT("htmlbook "), + DKT_VERSION_DK +}; + + + +/** License conditions. +*/ +static dkChar const * const hb_license[] = { +dkT(""), +dkT("Copyright (c) 2013-2016, Dirk Krause"), +dkT("All rights reserved."), +dkT(""), +dkT("Redistribution and use in source and binary forms,"), +dkT("with or without modification, are permitted provided"), +dkT("that the following conditions are met:"), +dkT(""), +dkT("* Redistributions of source code must retain the above"), +dkT(" copyright notice, this list of conditions and the"), +dkT(" following disclaimer."), +dkT("* Redistributions in binary form must reproduce the above "), +dkT(" copyright notice, this list of conditions and the following"), +dkT(" disclaimer in the documentation and/or other materials"), +dkT(" provided with the distribution."), +dkT("* Neither the name of the copyright holder(s) nor the names of"), +dkT(" contributors may be used to endorse or promote"), +dkT(" products derived from this software without specific"), +dkT(" prior written permission."), +dkT(""), +dkT("THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\""), +dkT("AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE"), +dkT("IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE"), +dkT("ARE DISCLAIMED."), +dkT("IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY"), +dkT("DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES"), +dkT("(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR"), +dkT("SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER"), +dkT("CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,"), +dkT("STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN"), +dkT("ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE"), +dkT("POSSIBILITY OF SUCH DAMAGE."), +dkT(""), +NULL + + +#line 457 "htmlbook.ctr" +}; + + + +/** Help text shown if help file is not found. +*/ +static dkChar const * const hb_help_text[] = { +dkT(""), +dkT("NAME"), +dkT(""), +dkT("htmlbook - Create HTML book structure"), +dkT(""), +dkT("SYNOPSIS"), +dkT(""), +dkT(" htmlbook [