corinthia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [32/51] [partial] incubator-corinthia git commit: Moved 3rdparty to platform This is the first part of isolating 3rdparty within platform. The idea is that only platform.h should be used outside platform platform.h might contain includes to internal file
Date Sun, 21 Dec 2014 12:35:26 GMT
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/ac70cb0e/DocFormats/3rdparty/external/w3c-tidy-html5/htmldoc/tidy1.xsl
----------------------------------------------------------------------
diff --git a/DocFormats/3rdparty/external/w3c-tidy-html5/htmldoc/tidy1.xsl b/DocFormats/3rdparty/external/w3c-tidy-html5/htmldoc/tidy1.xsl
deleted file mode 100644
index 414eb53..0000000
--- a/DocFormats/3rdparty/external/w3c-tidy-html5/htmldoc/tidy1.xsl
+++ /dev/null
@@ -1,447 +0,0 @@
-<?xml version="1.0"?>
-<!--
-    For generating the `tidy.1` man page from the
-    output of `tidy -xml-help` and `tidy -xml-config`
-
-    (c) 2005-2007 (W3C) MIT, ERCIM, Keio University
-    See tidy.h for the copyright notice.
-
-    Written by Jelks Cabaniss and Arnaud Desitter
-
--->
-<xsl:stylesheet version="1.0"
-                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-<xsl:strip-space elements="description" />
-
-<xsl:output method="text" />
-
-<!--
-    The default template match is to the document passed on the
-    command line to the XSLT processor, currently "tidy-help.xml".
-    For the detailed config options section however, the template
-    match is to the file "tidy-config.xml".  This is captured in
-    the $CONFIG variable, declared here:
--->
-
-<xsl:variable name="CONFIG" select="document('tidy-config.xml')"/>
-
-
-<!-- Main Template: -->
-
-<xsl:template match="/">
-   <xsl:call-template name="header-section" />
-   <xsl:call-template name="cmdline-section" />
-   <xsl:call-template name="config-section" />
-   <xsl:call-template name="manpage-see-also-section" />
-</xsl:template>
-
-
-<!-- Named Templates: -->
-
-
-<xsl:template name="header-section">
-  <xsl:text/>.\" tidy man page for the HTML5 fork of Tidy
-.TH TIDY 1 "<xsl:value-of select="cmdline/@version" />" "HTML Tidy" "<xsl:value-of select="cmdline/@version" />"
-</xsl:template>
-
-
-<xsl:template name="cmdline-section">
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.SH NAME
-\fBtidy\fR - check, correct, and pretty-print HTML(5) files
-.SH SYNOPSIS
-\fBtidy\fR [option ...] [file ...] [option ...] [file ...]
-.SH DESCRIPTION
-Tidy reads HTML(5), XHTML(5) and XML files and writes cleaned-up markup.  For HTML variants, it detects, reports, and corrects many common coding errors and strives to produce visually equivalent markup that is both conformant to the HTML specifications and that works in most browsers.
-.LP
-A common use of Tidy is to convert plain HTML to XHTML.  For generic XML files, Tidy is limited to correcting basic well-formedness errors and pretty printing.
-.LP
-If no input file is specified, Tidy reads the standard input.  If no output file is specified, Tidy writes the tidied markup to the standard output.  If no error file is specified, Tidy writes messages to the standard error.
-For command line options that expect a numerical argument, a default is assumed if no meaningful value can be found. 
-.SH OPTIONS
-<xsl:call-template name="show-cmdline-options" />
-.SH USAGE
-.LP
-Use \fB--\fR\fIoptionX valueX\fR for the detailed configuration option "optionX" with argument "valueX".  See also below under \fBDetailed Configuration Options\fR as to how to conveniently group all such options in a single config file.
-.LP
-Input/Output default to stdin/stdout respectively. Single letter options apart from \fB-f\fR and \fB-o\fR may be combined as in:
-.LP
-.in 1i
-\fBtidy -f errs.txt -imu foo.html\fR
-.SH ENVIRONMENT
-.TP
-.B HTML_TIDY
-Name of the default configuration file.  This should be an absolute path, since you will probably invoke \fBtidy\fR from different directories.  The value of HTML_TIDY will be parsed after the compiled-in default (defined with -DTIDY_CONFIG_FILE), but before any of the files specified using \fB-config\fR.
-.SH "EXIT STATUS"
-.IP 0
-All input files were processed successfully.
-.IP 1
-There were warnings.
-.IP 2
-There were errors.
-</xsl:template>
-
-
-<xsl:template name="config-section">
-.SH ______________________________
-.SH "  "
-.SH "DETAILED CONFIGURATION OPTIONS"
-This section describes the Detailed (i.e., "expanded") Options, which may be specified by preceding each option with \fB--\fR at the command line, followed by its desired value, OR by placing the options and values in a configuration file, and telling tidy to read that file with the \fB-config\fR standard option.
-.SH SYNOPSIS
-\fBtidy --\fR\fIoption1 \fRvalue1 \fB--\fIoption2 \fRvalue2 [standard options ...]
-.br
-\fBtidy -config \fIconfig-file \fR[standard options ...]
-.SH WARNING
-The options detailed here do not include the "standard" command-line options (i.e., those preceded by a single '\fB-\fR') described above in the first section of this man page.
-.SH DESCRIPTION
-A list of options for configuring the behavior of Tidy, which can be passed either on the command line, or specified in a configuration file.
-.LP
-A Tidy configuration file is simply a text file, where each option
-is listed on a separate line in the form
-.LP
-.in 1i
-\fBoption1\fR: \fIvalue1\fR
-.br
-\fBoption2\fR: \fIvalue2\fR
-.br
-etc.
-.LP
-The permissible values for a given option depend on the option's \fBType\fR.  There are five types: \fIBoolean\fR, \fIAutoBool\fR, \fIDocType\fR, \fIEnum\fR, and \fIString\fR. Boolean types allow any of \fIyes/no, y/n, true/false, t/f, 1/0\fR.  AutoBools allow \fIauto\fR in addition to the values allowed by Booleans.  Integer types take non-negative integers.  String types generally have no defaults, and you should provide them in non-quoted form (unless you wish the output to contain the literal quotes).
-.LP
-Enum, Encoding, and DocType "types" have a fixed repertoire of items; consult the \fIExample\fR[s] provided below for the option[s] in question.
-.LP
-You only need to provide options and values for those whose defaults you wish to override, although you may wish to include some already-defaulted options and values for the sake of documentation and explicitness.
-.LP
-Here is a sample config file, with at least one example of each of the five Types:
-.LP
-\fI
-    // sample Tidy configuration options
-    output-xhtml: yes
-    add-xml-decl: no
-    doctype: strict
-    char-encoding: ascii
-    indent: auto
-    wrap: 76
-    repeated-attributes: keep-last
-    error-file: errs.txt
-\fR
-.LP
-Below is a summary and brief description of each of the options. They are listed alphabetically within each category.  There are five categories: \fIHTML, XHTML, XML\fR options, \fIDiagnostics\fR options, \fIPretty Print\fR options, \fICharacter Encoding\fR options, and \fIMiscellaneous\fR options.
-.LP
-.SH OPTIONS
-<xsl:call-template name="show-config-options" />
-</xsl:template>
-
-
-<xsl:template name="show-cmdline-options">
-.SS File manipulation
-  <xsl:call-template name="cmdline-detail">
-     <xsl:with-param name="category">file-manip</xsl:with-param>
-  </xsl:call-template>
-.SS Processing directives
-  <xsl:call-template name="cmdline-detail">
-     <xsl:with-param name="category">process-directives</xsl:with-param>
-  </xsl:call-template>
-.SS Character encodings
-  <xsl:call-template name="cmdline-detail">
-     <xsl:with-param name="category">char-encoding</xsl:with-param>
-  </xsl:call-template>
-.SS Miscellaneous
-  <xsl:call-template name="cmdline-detail">
-     <xsl:with-param name="category">misc</xsl:with-param>
-  </xsl:call-template>
-</xsl:template>
-
-
-<xsl:template name="cmdline-detail">
-<!--
-For each option in one of the 3 categories/classes, provide its
-    1. names
-    2. description
-    3. equivalent configuration option
--->
-  <xsl:param name="category" />
-    <xsl:for-each select='/cmdline/option[@class=$category]'>
-<xsl:text>
-.TP
-</xsl:text>
-       <xsl:call-template name="process-names" />
-       <xsl:text>
-</xsl:text>
-       <xsl:apply-templates select="description" />
-       <xsl:text>
-</xsl:text>
-       <xsl:call-template name="process-eqconfig" />
-    </xsl:for-each>
-</xsl:template>
-
-
-<xsl:template name="process-names">
-<!-- Used only in the cmdline section -->
-  <xsl:for-each select="name">
-    <xsl:text />\fB<xsl:value-of select="." />\fR<xsl:text />
-    <xsl:if test="position() != last()">
-      <xsl:text>, </xsl:text>
-    </xsl:if>
-  </xsl:for-each>
-</xsl:template>
-
-
-<xsl:template name="process-eqconfig">
-<!-- Used only in the cmdline section -->
-  <xsl:if test="string-length(eqconfig) &gt; 0">
-   <xsl:for-each select="eqconfig">
-     <xsl:text>(\fI</xsl:text>
-     <xsl:value-of select="." />
-     <xsl:text>\fR)</xsl:text>
-   </xsl:for-each>
-  </xsl:if>
-</xsl:template>
-
-
-<xsl:template name="show-config-options">
-<!-- Used only in the cmdline section -->
-.SS HTML, XHTML, XML options:
-  <xsl:call-template name="config-detail">
-     <xsl:with-param name="category">markup</xsl:with-param>
-  </xsl:call-template>
-.SS Diagnostics options:
-  <xsl:call-template name="config-detail">
-     <xsl:with-param name="category">diagnostics</xsl:with-param>
-  </xsl:call-template>
-.SS Pretty Print options:
-  <xsl:call-template name="config-detail">
-     <xsl:with-param name="category">print</xsl:with-param>
-  </xsl:call-template>
-.SS Character Encoding options:
-  <xsl:call-template name="config-detail">
-     <xsl:with-param name="category">encoding</xsl:with-param>
-  </xsl:call-template>
-.SS Miscellaneous options:
-  <xsl:call-template name="config-detail">
-     <xsl:with-param name="category">misc</xsl:with-param>
-  </xsl:call-template>
-</xsl:template>
-
-
-<!--
-    Note that any templates called implicitly or explicitly
-    from the "config-detail" template below will match on
-    the document referred to by the $CONFIG variable, i.e.,
-    the file "tidy-config.xml", created by running
-
-        tidy -xml-config > tidy-config.xml
-
-    The $CONFIG variable is set at the top level of this
-    stylesheet.
--->
-
-<xsl:template name="config-detail">
-<!--
-For each option in one of the 5 categories/classes, provide its
-    1. name
-    2. type
-    3. default (if any)
-    4. example (if any)
-    5. seealso (if any)
-    6. description
--->
-  <xsl:param name="category" />
-    <xsl:for-each select='$CONFIG/config/option[@class=$category]'>
-       <xsl:sort select="name" order="ascending" />
-.TP
-\fB<xsl:apply-templates select="name" />\fR
-
-Type:    \fI<xsl:apply-templates select="type" />\fR
-.br
-<xsl:call-template name="provide-default" />
-.br
-<xsl:call-template name="provide-example" />
-<xsl:text>
-
-</xsl:text>
-<xsl:apply-templates select="description" />
-<xsl:call-template name="seealso" />
-    </xsl:for-each>
-</xsl:template>
-
-
-<!-- Used only in the config options section: -->
-<xsl:template name="seealso">
-  <xsl:if test="seealso">
-     <xsl:text>
-
-</xsl:text>
-.rj 1
-\fBSee also\fR: <xsl:text />
-    <xsl:for-each select="seealso">
-      <xsl:text />\fI<xsl:value-of select="." />\fR<xsl:text />
-      <xsl:if test="position() != last()">
-        <xsl:text>, </xsl:text>
-      </xsl:if>
-    </xsl:for-each>
-  </xsl:if>
-</xsl:template>
-
-
-<!-- Used only in the config options section: -->
-<xsl:template name="provide-default">
-<!--
-Picks up the default from the XML.  If the `default` element
-doesn't exist, or it's empty, a single '-' is provided.
--->
-  <xsl:choose>
-    <xsl:when test="string-length(default) &gt; 0 ">
-      <xsl:text />Default: \fI<xsl:apply-templates
-        select="default" />\fR<xsl:text />
-    </xsl:when>
-    <xsl:otherwise>
-      <xsl:text />Default: \fI-\fR<xsl:text />
-    </xsl:otherwise>
-  </xsl:choose>
-</xsl:template>
-
-
-<!-- Used only in the config options section: -->
-<xsl:template name="provide-example">
-<!--
-By default, doesn't output examples for String types (mirroring the
-quickref page).  But for *any* options in the XML instance that
-have an `example` child, that example will be used in lieu of a
-stylesheet-provided one. (Useful e.g. for `repeated-attributes`).
--->
-  <xsl:choose>
-    <xsl:when test="string-length(example) &gt; 0">
-      <xsl:text />Example: \fI<xsl:apply-templates
-          select="example" />\fR<xsl:text />
-    </xsl:when>
-    <xsl:otherwise>
-      <xsl:text />Default: \fI-\fR<xsl:text />
-    </xsl:otherwise>
-  </xsl:choose>
-</xsl:template>
-
-
-<!-- Called from the templates below matching `code`, `em`, `strong`: -->
-<xsl:template name="escape-backslash">
-<!--
-Since backslashes are "special" to the *roff processors used
-to generate man pages, we need to escape backslash characters
-appearing in content with another backslash.
--->
-  <xsl:choose>
-    <xsl:when test="contains(.,'\')">
-      <xsl:value-of select=
-        "concat( substring-before(.,'\'), '\\', substring-after(.,'\') )" />
-    </xsl:when>
-    <xsl:otherwise>
-      <xsl:apply-templates />
-    </xsl:otherwise>
-  </xsl:choose>
-</xsl:template>
-
-
-<!-- Appears at the bottom of the man page: -->
-<xsl:template name="manpage-see-also-section">
-.SH SEE ALSO
-For more information about the experimental HTML5 fork of Tidy:
-.RS 4
-.LP
-http://w3c.github.com/tidy-html5/
-.RE
-.LP
-For more information on HTML:
-.RS 4
-.LP
-\fBHTML: Edition for Web Authors\fR (the latest HTML specification)
-.br
-http://dev.w3.org/html5/spec-author-view
-.LP
-\fBHTML: The Markup Language\fR (an HTML language reference)
-.br
-http://dev.w3.org/html5/markup/
-.RE
-.LP
-For bug reports and comments:
-.RS 4
-.LP
-https://github.com/w3c/tidy-html5/issues/
-.RE
-.LP
-Or send questions and comments to \fBhtml-tidy@w3.org\fR
-.LP
-Validate your HTML documents using the \fBW3C Nu Markup Validator\fR:
-.RS 4
-.LP
-http://validator.w3.org/nu/
-.RE
-.SH AUTHOR
-\fBTidy\fR was written by \fBDave Raggett\fR &lt;dsr@w3.org&gt;, and subsequently maintained by a team at http://tidy.sourceforge.net/
-.LP
-The sources for the HTML5 fork of \fBTidy\fR are available at https://github.com/w3c/tidy-html5/ under the MIT Licence.
-</xsl:template>
-
-
-<!-- Regular Templates: -->
-
-
-<xsl:template match="description">
-   <xsl:apply-templates />
-</xsl:template>
-
-<xsl:template match="a">
-   <xsl:apply-templates />
-   <xsl:text /> at \fI<xsl:value-of select="@href" />\fR<xsl:text />
-</xsl:template>
-
-<xsl:template match="code | em">
-   <xsl:text />\fI<xsl:call-template name="escape-backslash" />\fR<xsl:text />
-</xsl:template>
-
-<xsl:template match="br">
-   <xsl:text>
-.br
-</xsl:text>
-</xsl:template>
-
-<xsl:template match="strong">
-   <xsl:text />\fB<xsl:call-template name="escape-backslash" />\fR<xsl:text />
-</xsl:template>
-
-
-<!--
-The following templates
-  a) normalize whitespace, primarily necessary for `description`
-  b) do so without stripping possible whitespace surrounding `code`
-  d) strip leading and trailing whitespace in 'description` and `code`
-(courtesy of Ken Holman on the XSL-list):
--->
-
-<xsl:template match="text()[preceding-sibling::node() and
-                             following-sibling::node()]">
-   <xsl:variable name="ns" select="normalize-space(concat('x',.,'x'))"/>
-   <xsl:value-of select="substring( $ns, 2, string-length($ns) - 2 )" />
-</xsl:template>
-
-<xsl:template match="text()[preceding-sibling::node() and
-                             not( following-sibling::node() )]">
-   <xsl:variable name="ns" select="normalize-space(concat('x',.))"/>
-   <xsl:value-of select="substring( $ns, 2, string-length($ns) - 1 )" />
-</xsl:template>
-
-<xsl:template match="text()[not( preceding-sibling::node() ) and
-                             following-sibling::node()]">
-   <xsl:variable name="ns" select="normalize-space(concat(.,'x'))"/>
-   <xsl:value-of select="substring( $ns, 1, string-length($ns) - 1 )" />
-</xsl:template>
-
-<xsl:template match="text()[not( preceding-sibling::node() ) and
-                             not( following-sibling::node() )]">
-   <xsl:value-of select="normalize-space(.)"/>
-</xsl:template>
-
-</xsl:stylesheet>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/ac70cb0e/DocFormats/3rdparty/external/w3c-tidy-html5/include/buffio.h
----------------------------------------------------------------------
diff --git a/DocFormats/3rdparty/external/w3c-tidy-html5/include/buffio.h b/DocFormats/3rdparty/external/w3c-tidy-html5/include/buffio.h
deleted file mode 100644
index 7cacadc..0000000
--- a/DocFormats/3rdparty/external/w3c-tidy-html5/include/buffio.h
+++ /dev/null
@@ -1,112 +0,0 @@
-#ifndef __TIDY_BUFFIO_H__
-#define __TIDY_BUFFIO_H__
-
-/** @file buffio.h - Treat buffer as an I/O stream.
-
-  (c) 1998-2007 (W3C) MIT, ERCIM, Keio University
-  See tidy.h for the copyright notice.
-
-  Requires buffer to automatically grow as bytes are added.
-  Must keep track of current read and write points.
-
-*/
-
-#include "platform.h"
-#include "tidy.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/** TidyBuffer - A chunk of memory */
-TIDY_STRUCT
-struct _TidyBuffer 
-{
-    TidyAllocator* allocator;  /**< Memory allocator */
-    byte* bp;           /**< Pointer to bytes */
-    uint  size;         /**< # bytes currently in use */
-    uint  allocated;    /**< # bytes allocated */ 
-    uint  next;         /**< Offset of current input position */
-};
-
-/** Initialize data structure using the default allocator */
-TIDY_EXPORT void TIDY_CALL tidyBufInit( TidyBuffer* buf );
-
-/** Initialize data structure using the given custom allocator */
-TIDY_EXPORT void TIDY_CALL tidyBufInitWithAllocator( TidyBuffer* buf, TidyAllocator* allocator );
-
-/** Free current buffer, allocate given amount, reset input pointer,
-    use the default allocator */
-TIDY_EXPORT void TIDY_CALL tidyBufAlloc( TidyBuffer* buf, uint allocSize );
-
-/** Free current buffer, allocate given amount, reset input pointer,
-    use the given custom allocator */
-TIDY_EXPORT void TIDY_CALL tidyBufAllocWithAllocator( TidyBuffer* buf,
-                                                      TidyAllocator* allocator,
-                                                      uint allocSize );
-
-/** Expand buffer to given size. 
-**  Chunk size is minimum growth. Pass 0 for default of 256 bytes.
-*/
-TIDY_EXPORT void TIDY_CALL tidyBufCheckAlloc( TidyBuffer* buf,
-                                              uint allocSize, uint chunkSize );
-
-/** Free current contents and zero out */
-TIDY_EXPORT void TIDY_CALL tidyBufFree( TidyBuffer* buf );
-
-/** Set buffer bytes to 0 */
-TIDY_EXPORT void TIDY_CALL tidyBufClear( TidyBuffer* buf );
-
-/** Attach to existing buffer */
-TIDY_EXPORT void TIDY_CALL tidyBufAttach( TidyBuffer* buf, byte* bp, uint size );
-
-/** Detach from buffer.  Caller must free. */
-TIDY_EXPORT void TIDY_CALL tidyBufDetach( TidyBuffer* buf );
-
-
-/** Append bytes to buffer.  Expand if necessary. */
-TIDY_EXPORT void TIDY_CALL tidyBufAppend( TidyBuffer* buf, void* vp, uint size );
-
-/** Append one byte to buffer.  Expand if necessary. */
-TIDY_EXPORT void TIDY_CALL tidyBufPutByte( TidyBuffer* buf, byte bv );
-
-/** Get byte from end of buffer */
-TIDY_EXPORT int TIDY_CALL  tidyBufPopByte( TidyBuffer* buf );
-
-
-/** Get byte from front of buffer.  Increment input offset. */
-TIDY_EXPORT int TIDY_CALL  tidyBufGetByte( TidyBuffer* buf );
-
-/** At end of buffer? */
-TIDY_EXPORT Bool TIDY_CALL tidyBufEndOfInput( TidyBuffer* buf );
-
-/** Put a byte back into the buffer.  Decrement input offset. */
-TIDY_EXPORT void TIDY_CALL tidyBufUngetByte( TidyBuffer* buf, byte bv );
-
-
-/**************
-   TIDY
-**************/
-
-/* Forward declarations
-*/
-
-/** Initialize a buffer input source */
-TIDY_EXPORT void TIDY_CALL tidyInitInputBuffer( TidyInputSource* inp, TidyBuffer* buf );
-
-/** Initialize a buffer output sink */
-TIDY_EXPORT void TIDY_CALL tidyInitOutputBuffer( TidyOutputSink* outp, TidyBuffer* buf );
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* __TIDY_BUFFIO_H__ */
-
-/*
- * local variables:
- * mode: c
- * indent-tabs-mode: nil
- * c-basic-offset: 4
- * eval: (c-set-offset 'substatement-open 0)
- * end:
- */

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/ac70cb0e/DocFormats/3rdparty/external/w3c-tidy-html5/include/platform.h
----------------------------------------------------------------------
diff --git a/DocFormats/3rdparty/external/w3c-tidy-html5/include/platform.h b/DocFormats/3rdparty/external/w3c-tidy-html5/include/platform.h
deleted file mode 100644
index 2700f52..0000000
--- a/DocFormats/3rdparty/external/w3c-tidy-html5/include/platform.h
+++ /dev/null
@@ -1,630 +0,0 @@
-#ifndef __TIDY_PLATFORM_H__
-#define __TIDY_PLATFORM_H__
-
-/* platform.h -- Platform specifics
-
-  (c) 1998-2008 (W3C) MIT, ERCIM, Keio University
-  See tidy.h for the copyright notice.
-
-*/
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
-  Uncomment and edit one of the following #defines if you
-  want to specify the config file at compile-time.
-*/
-
-/* #define TIDY_CONFIG_FILE "/etc/tidy_config.txt" */ /* original */
-/* #define TIDY_CONFIG_FILE "/etc/tidyrc" */
-/* #define TIDY_CONFIG_FILE "/etc/tidy.conf" */
-
-/*
-  Uncomment the following #define if you are on a system
-  supporting the HOME environment variable.
-  It enables tidy to find config files named ~/.tidyrc if 
-  the HTML_TIDY environment variable is not set.
-*/
-/* #define TIDY_USER_CONFIG_FILE "~/.tidyrc" */
-
-/*
-  Uncomment the following #define if your
-  system supports the call getpwnam(). 
-  E.g. Unix and Linux.
-
-  It enables tidy to find files named 
-  ~your/foo for use in the HTML_TIDY environment
-  variable or CONFIG_FILE or USER_CONFIGFILE or
-  on the command line: -config ~joebob/tidy.cfg
-
-  Contributed by Todd Lewis.
-*/
-
-/* #define SUPPORT_GETPWNAM */
-
-
-/* Enable/disable support for Big5 and Shift_JIS character encodings */
-#ifndef SUPPORT_ASIAN_ENCODINGS
-#define SUPPORT_ASIAN_ENCODINGS 1
-#endif
-
-/* Enable/disable support for UTF-16 character encodings */
-#ifndef SUPPORT_UTF16_ENCODINGS
-#define SUPPORT_UTF16_ENCODINGS 1
-#endif
-
-/* Enable/disable support for additional accessibility checks */
-#ifndef SUPPORT_ACCESSIBILITY_CHECKS
-#define SUPPORT_ACCESSIBILITY_CHECKS 1
-#endif
-
-
-/* Convenience defines for Mac platforms */
-
-#if defined(macintosh)
-/* Mac OS 6.x/7.x/8.x/9.x, with or without CarbonLib - MPW or Metrowerks 68K/PPC compilers */
-#define MAC_OS_CLASSIC
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "Mac OS"
-#endif
-
-/* needed for access() */
-#if !defined(_POSIX) && !defined(NO_ACCESS_SUPPORT)
-#define NO_ACCESS_SUPPORT
-#endif
-
-#ifdef SUPPORT_GETPWNAM
-#undef SUPPORT_GETPWNAM
-#endif
-
-#elif defined(__APPLE__) && defined(__MACH__)
-/* Mac OS X (client) 10.x (or server 1.x/10.x) - gcc or Metrowerks MachO compilers */
-#define MAC_OS_X
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "Mac OS X"
-#endif
-#endif
-
-#if defined(MAC_OS_CLASSIC) || defined(MAC_OS_X)
-/* Any OS on Mac platform */
-#define MAC_OS
-#define FILENAMES_CASE_SENSITIVE 0
-#define strcasecmp strcmp
-#ifndef DFLT_REPL_CHARENC
-#define DFLT_REPL_CHARENC MACROMAN
-#endif
-#endif
-
-/* Convenience defines for BSD like platforms */
- 
-#if defined(__FreeBSD__)
-#define BSD_BASED_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "FreeBSD"
-#endif
-
-#elif defined(__NetBSD__)
-#define BSD_BASED_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "NetBSD"
-#endif
-
-#elif defined(__OpenBSD__)
-#define BSD_BASED_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "OpenBSD"
-#endif
-
-#elif defined(__DragonFly__)
-#define BSD_BASED_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "DragonFly"
-#endif
-
-#elif defined(__MINT__)
-#define BSD_BASED_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "FreeMiNT"
-#endif
-
-#elif defined(__bsdi__)
-#define BSD_BASED_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "BSD/OS"
-#endif
-
-#endif
-
-/* Convenience defines for Windows platforms */
- 
-#if defined(WINDOWS) || defined(_WIN32)
-
-#define WINDOWS_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "Windows"
-#endif
-
-#if defined(__MWERKS__) || defined(__MSL__)
-/* not available with Metrowerks Standard Library */
-
-#ifdef SUPPORT_GETPWNAM
-#undef SUPPORT_GETPWNAM
-#endif
-
-/* needed for setmode() */
-#if !defined(NO_SETMODE_SUPPORT)
-#define NO_SETMODE_SUPPORT
-#endif
-
-#define strcasecmp _stricmp
-
-#endif
-
-#if defined(__BORLANDC__)
-#define strcasecmp stricmp
-#endif
-
-#define FILENAMES_CASE_SENSITIVE 0
-#define SUPPORT_POSIX_MAPPED_FILES 0
-
-#endif
-
-/* Convenience defines for Linux platforms */
- 
-#if defined(linux) && defined(__alpha__)
-/* Linux on Alpha - gcc compiler */
-#define LINUX_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "Linux/Alpha"
-#endif
-
-#elif defined(linux) && defined(__sparc__)
-/* Linux on Sparc - gcc compiler */
-#define LINUX_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "Linux/Sparc"
-#endif
-
-#elif defined(linux) && (defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__))
-/* Linux on x86 - gcc compiler */
-#define LINUX_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "Linux/x86"
-#endif
-
-#elif defined(linux) && defined(__powerpc__)
-/* Linux on PPC - gcc compiler */
-#define LINUX_OS
-
-#if defined(__linux__) && defined(__powerpc__)
-
-/* #if #system(linux) */
-/* MkLinux on PPC  - gcc (egcs) compiler */
-/* #define MAC_OS_MKLINUX */
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "MkLinux"
-#endif
-
-#else
-
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "Linux/PPC"
-#endif
-
-#endif
-
-#elif defined(linux) || defined(__linux__)
-/* generic Linux */
-#define LINUX_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "Linux"
-#endif
-
-#endif
-
-/* Convenience defines for Solaris platforms */
- 
-#if defined(sun)
-#define SOLARIS_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "Solaris"
-#endif
-#endif
-
-/* Convenience defines for HPUX + gcc platforms */
-
-#if defined(__hpux)
-#define HPUX_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "HPUX"
-#endif
-#endif
-
-/* Convenience defines for RISCOS + gcc platforms */
-
-#if defined(__riscos__)
-#define RISC_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "RISC OS"
-#endif
-#endif
-
-/* Convenience defines for OS/2 + icc/gcc platforms */
-
-#if defined(__OS2__) || defined(__EMX__)
-#define OS2_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "OS/2"
-#endif
-#define FILENAMES_CASE_SENSITIVE 0
-#define strcasecmp stricmp
-#endif
-
-/* Convenience defines for IRIX */
-
-#if defined(__sgi)
-#define IRIX_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "SGI IRIX"
-#endif
-#endif
-
-/* Convenience defines for AIX */
-
-#if defined(_AIX)
-#define AIX_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "IBM AIX"
-#endif
-#endif
-
-
-/* Convenience defines for BeOS platforms */
-
-#if defined(__BEOS__)
-#define BE_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "BeOS"
-#endif
-#endif
-
-/* Convenience defines for Cygwin platforms */
-
-#if defined(__CYGWIN__)
-#define CYGWIN_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "Cygwin"
-#endif
-#define FILENAMES_CASE_SENSITIVE 0
-#endif
-
-/* Convenience defines for OpenVMS */
-
-#if defined(__VMS)
-#define OPENVMS_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "OpenVMS"
-#endif
-#define FILENAMES_CASE_SENSITIVE 0
-#endif
-
-/* Convenience defines for DEC Alpha OSF + gcc platforms */
-
-#if defined(__osf__)
-#define OSF_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "DEC Alpha OSF"
-#endif
-#endif
-
-/* Convenience defines for ARM platforms */
-
-#if defined(__arm)
-#define ARM_OS
-
-#if defined(forARM) && defined(__NEWTON_H)
-
-/* Using Newton C++ Tools ARMCpp compiler */
-#define NEWTON_OS
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "Newton"
-#endif
-
-#else
-
-#ifndef PLATFORM_NAME
-#define PLATFORM_NAME "ARM"
-#endif
-
-#endif
-
-#endif
-
-#include <ctype.h>
-#include <stdio.h>
-#include <setjmp.h>  /* for longjmp on error exit */
-#include <stdlib.h>
-#include <stdarg.h>  /* may need <varargs.h> for Unix V */
-#include <string.h>
-#include <assert.h>
-
-#ifdef NEEDS_MALLOC_H
-#include <malloc.h>
-#endif
-
-#ifdef SUPPORT_GETPWNAM
-#include <pwd.h>
-#endif
-
-#ifdef NEEDS_UNISTD_H
-#include <unistd.h>  /* needed for unlink on some Unix systems */
-#endif
-
-/* This can be set at compile time.  Usually Windows,
-** except for Macintosh builds.
-*/
-#ifndef DFLT_REPL_CHARENC
-#define DFLT_REPL_CHARENC WIN1252
-#endif
-
-/* By default, use case-sensitive filename comparison.
-*/
-#ifndef FILENAMES_CASE_SENSITIVE
-#define FILENAMES_CASE_SENSITIVE 1
-#endif
-
-
-/*
-  Tidy preserves the last modified time for the files it
-  cleans up.
-*/
-
-/*
-  If your platform doesn't support <utime.h> and the
-  utime() function, or <sys/futime> and the futime()
-  function then set PRESERVE_FILE_TIMES to 0.
-  
-  If your platform doesn't support <sys/utime.h> and the
-  futime() function, then set HAS_FUTIME to 0.
-  
-  If your platform supports <utime.h> and the
-  utime() function requires the file to be
-  closed first, then set UTIME_NEEDS_CLOSED_FILE to 1.
-*/
-
-/* Keep old PRESERVEFILETIMES define for compatibility */
-#ifdef PRESERVEFILETIMES
-#undef PRESERVE_FILE_TIMES
-#define PRESERVE_FILE_TIMES PRESERVEFILETIMES
-#endif
-
-#ifndef PRESERVE_FILE_TIMES
-#if defined(RISC_OS) || defined(OPENVMS_OS) || defined(OSF_OS)
-#define PRESERVE_FILE_TIMES 0
-#else
-#define PRESERVE_FILE_TIMES 1
-#endif
-#endif
-
-#if PRESERVE_FILE_TIMES
-
-#ifndef HAS_FUTIME
-#if defined(CYGWIN_OS) || defined(BE_OS) || defined(OS2_OS) || defined(HPUX_OS) || defined(SOLARIS_OS) || defined(LINUX_OS) || defined(BSD_BASED_OS) || defined(MAC_OS) || defined(__MSL__) || defined(IRIX_OS) || defined(AIX_OS) || defined(__BORLANDC__)
-#define HAS_FUTIME 0
-#else
-#define HAS_FUTIME 1
-#endif
-#endif
-
-#ifndef UTIME_NEEDS_CLOSED_FILE
-#if defined(SOLARIS_OS) || defined(BSD_BASED_OS) || defined(MAC_OS) || defined(__MSL__) || defined(LINUX_OS)
-#define UTIME_NEEDS_CLOSED_FILE 1
-#else
-#define UTIME_NEEDS_CLOSED_FILE 0
-#endif
-#endif
-
-#if defined(MAC_OS_X) || (!defined(MAC_OS_CLASSIC) && !defined(__MSL__))
-#include <sys/types.h> 
-#include <sys/stat.h>
-#else
-#include <stat.h>
-#endif
-
-#if HAS_FUTIME
-#include <sys/utime.h>
-#else
-#include <utime.h>
-#endif /* HASFUTIME */
-
-/*
-  MS Windows needs _ prefix for Unix file functions.
-  Not required by Metrowerks Standard Library (MSL).
-  
-  Tidy uses following for preserving the last modified time.
-
-  WINDOWS automatically set by Win16 compilers.
-  _WIN32 automatically set by Win32 compilers.
-*/
-#if defined(_WIN32) && !defined(__MSL__) && !defined(__BORLANDC__)
-
-#define futime _futime
-#define fstat _fstat
-#define utimbuf _utimbuf /* Windows seems to want utimbuf */
-#define stat _stat
-#define utime _utime
-#define vsnprintf _vsnprintf
-#endif /* _WIN32 */
-
-#endif /* PRESERVE_FILE_TIMES */
-
-/*
-  MS Windows needs _ prefix for Unix file functions.
-  Not required by Metrowerks Standard Library (MSL).
-  
-  WINDOWS automatically set by Win16 compilers.
-  _WIN32 automatically set by Win32 compilers.
-*/
-#if defined(_WIN32) && !defined(__MSL__) && !defined(__BORLANDC__)
-
-#ifndef __WATCOMC__
-#define fileno _fileno
-#define setmode _setmode
-#endif
-
-#define access _access
-#define strcasecmp _stricmp
-
-#if _MSC_VER > 1000
-#pragma warning( disable : 4189 ) /* local variable is initialized but not referenced */
-#pragma warning( disable : 4100 ) /* unreferenced formal parameter */
-#pragma warning( disable : 4706 ) /* assignment within conditional expression */
-#endif
-
-#if _MSC_VER > 1300
-#pragma warning( disable : 4996 ) /* disable depreciation warning */
-#endif
-
-#endif /* _WIN32 */
-
-#if defined(_WIN32)
-
-#if (defined(_USRDLL) || defined(_WINDLL)) && !defined(TIDY_EXPORT)
-#define TIDY_EXPORT __declspec( dllexport ) 
-#endif
-
-#ifndef TIDY_CALL
-#ifdef _WIN64
-#  define TIDY_CALL __fastcall
-#else
-#  define TIDY_CALL __stdcall
-#endif
-#endif
-
-#endif /* _WIN32 */
-
-/* hack for gnu sys/types.h file which defines uint and ulong */
-
-#if defined(BE_OS) || defined(SOLARIS_OS) || defined(BSD_BASED_OS) || defined(OSF_OS) || defined(IRIX_OS) || defined(AIX_OS)
-#include <sys/types.h>
-#endif
-#if !defined(HPUX_OS) && !defined(CYGWIN_OS) && !defined(MAC_OS_X) && !defined(BE_OS) && !defined(SOLARIS_OS) && !defined(BSD_BASED_OS) && !defined(OSF_OS) && !defined(IRIX_OS) && !defined(AIX_OS) && !defined(LINUX_OS)
-# undef uint
-typedef unsigned int uint;
-#endif
-#if defined(HPUX_OS) || defined(CYGWIN_OS) || defined(MAC_OS) || defined(BSD_BASED_OS) || defined(_WIN32)
-# undef ulong
-typedef unsigned long ulong;
-#endif
-
-/*
-With GCC 4,  __attribute__ ((visibility("default"))) can be used along compiling with tidylib 
-with "-fvisibility=hidden". See http://gcc.gnu.org/wiki/Visibility and build/gmake/Makefile.
-*/
-/*
-#if defined(__GNUC__) && __GNUC__ >= 4
-#define TIDY_EXPORT __attribute__ ((visibility("default")))
-#endif
-*/
-
-#ifndef TIDY_EXPORT /* Define it away for most builds */
-#define TIDY_EXPORT 
-#endif
-
-#ifndef TIDY_STRUCT
-#define TIDY_STRUCT
-#endif
-
-typedef unsigned char byte;
-
-typedef uint tchar;         /* single, full character */
-typedef char tmbchar;       /* single, possibly partial character */
-#ifndef TMBSTR_DEFINED
-typedef tmbchar* tmbstr;    /* pointer to buffer of possibly partial chars */
-typedef const tmbchar* ctmbstr; /* Ditto, but const */
-#define NULLSTR (tmbstr)""
-#define TMBSTR_DEFINED
-#endif
-
-#ifndef TIDY_CALL
-#define TIDY_CALL
-#endif
-
-#if defined(__GNUC__) || defined(__INTEL_COMPILER)
-# define ARG_UNUSED(x) x __attribute__((unused))
-#else
-# define ARG_UNUSED(x) x
-#endif
-
-/* HAS_VSNPRINTF triggers the use of "vsnprintf", which is safe related to
-   buffer overflow. Therefore, we make it the default unless HAS_VSNPRINTF
-   has been defined. */
-#ifndef HAS_VSNPRINTF
-# define HAS_VSNPRINTF 1
-#endif
-
-#ifndef SUPPORT_POSIX_MAPPED_FILES
-# define SUPPORT_POSIX_MAPPED_FILES 1
-#endif
-
-/*
-  bool is a reserved word in some but
-  not all C++ compilers depending on age
-  work around is to avoid bool altogether
-  by introducing a new enum called Bool
-*/
-/* We could use the C99 definition where supported
-typedef _Bool Bool;
-#define no (_Bool)0
-#define yes (_Bool)1
-*/
-typedef enum
-{
-   no,
-   yes
-} Bool;
-
-/* for NULL pointers 
-#define null ((const void*)0)
-extern void* null;
-*/
-
-#if defined(DMALLOC)
-#include "dmalloc.h"
-#endif
-
-/* Opaque data structure.
-*  Cast to implementation type struct within lib.
-*  This will reduce inter-dependencies/conflicts w/ application code.
-*/
-#if 1
-#define opaque_type( typenam )\
-struct _##typenam { int _opaque; };\
-typedef struct _##typenam const * typenam
-#else
-#define opaque_type(typenam) typedef const void* typenam
-#endif
-
-/* Opaque data structure used to pass back
-** and forth to keep current position in a
-** list or other collection.
-*/
-opaque_type( TidyIterator );
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif
-
-#endif /* __TIDY_PLATFORM_H__ */
-
-
-/*
- * local variables:
- * mode: c
- * indent-tabs-mode: nil
- * c-basic-offset: 4
- * eval: (c-set-offset 'substatement-open 0)
- * end:
- */

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/ac70cb0e/DocFormats/3rdparty/external/w3c-tidy-html5/include/tidy.h
----------------------------------------------------------------------
diff --git a/DocFormats/3rdparty/external/w3c-tidy-html5/include/tidy.h b/DocFormats/3rdparty/external/w3c-tidy-html5/include/tidy.h
deleted file mode 100644
index fb4dd7a..0000000
--- a/DocFormats/3rdparty/external/w3c-tidy-html5/include/tidy.h
+++ /dev/null
@@ -1,1095 +0,0 @@
-#ifndef __TIDY_H__
-#define __TIDY_H__
-
-/** @file tidy.h - Defines HTML Tidy API implemented by tidy library.
-
-  Public interface is const-correct and doesn't explicitly depend
-  on any globals.  Thus, thread-safety may be introduced w/out
-  changing the interface.
-
-  Looking ahead to a C++ wrapper, C functions always pass 
-  this-equivalent as 1st arg.
-
-
-  Copyright (c) 1998-2008 World Wide Web Consortium
-  (Massachusetts Institute of Technology, European Research 
-  Consortium for Informatics and Mathematics, Keio University).
-  All Rights Reserved.
-
-  Contributing Author(s):
-
-     Dave Raggett <dsr@w3.org>
-
-  The contributing author(s) would like to thank all those who
-  helped with testing, bug fixes and suggestions for improvements. 
-  This wouldn't have been possible without your help.
-
-  COPYRIGHT NOTICE:
- 
-  This software and documentation is provided "as is," and
-  the copyright holders and contributing author(s) make no
-  representations or warranties, express or implied, including
-  but not limited to, warranties of merchantability or fitness
-  for any particular purpose or that the use of the software or
-  documentation will not infringe any third party patents,
-  copyrights, trademarks or other rights. 
-
-  The copyright holders and contributing author(s) will not be held
-  liable for any direct, indirect, special or consequential damages
-  arising out of any use of the software or documentation, even if
-  advised of the possibility of such damage.
-
-  Permission is hereby granted to use, copy, modify, and distribute
-  this source code, or portions hereof, documentation and executables,
-  for any purpose, without fee, subject to the following restrictions:
-
-  1. The origin of this source code must not be misrepresented.
-  2. Altered versions must be plainly marked as such and must
-     not be misrepresented as being the original source.
-  3. This Copyright notice may not be removed or altered from any
-     source or altered source distribution.
- 
-  The copyright holders and contributing author(s) specifically
-  permit, without fee, and encourage the use of this source code
-  as a component for supporting the Hypertext Markup Language in
-  commercial products. If you use this source code in a product,
-  acknowledgment is not required but would be appreciated.
-
-
-  Created 2001-05-20 by Charles Reitzel
-  Updated 2002-07-01 by Charles Reitzel - 1st Implementation
-
-*/
-
-#include "platform.h"
-#include "tidyenum.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/** @defgroup Opaque Opaque Types
-**
-** Cast to implementation types within lib.
-** Reduces inter-dependencies/conflicts w/ application code.
-** @{
-*/
-
-/** @struct TidyDoc
-**  Opaque document datatype
-*/
-opaque_type( TidyDoc );
-
-/** @struct TidyOption
-**  Opaque option datatype
-*/
-opaque_type( TidyOption );
-
-/** @struct TidyNode
-**  Opaque node datatype
-*/
-opaque_type( TidyNode );
-
-/** @struct TidyAttr
-**  Opaque attribute datatype
-*/
-opaque_type( TidyAttr );
-
-/** @} end Opaque group */
-
-TIDY_STRUCT struct _TidyBuffer;
-typedef struct _TidyBuffer TidyBuffer;
-
-
-/** @defgroup Memory  Memory Allocation
-**
-** Tidy uses a user provided allocator for all
-** memory allocations.  If this allocator is
-** not provided, then a default allocator is
-** used which simply wraps standard C malloc/free
-** calls.  These wrappers call the panic function
-** upon any failure.  The default panic function
-** prints an out of memory message to stderr, and
-** calls exit(2).
-**
-** For applications in which it is unacceptable to
-** abort in the case of memory allocation, then the
-** panic function can be replaced with one which
-** longjmps() out of the tidy code.  For this to
-** clean up completely, you should be careful not
-** to use any tidy methods that open files as these
-** will not be closed before panic() is called.
-**
-** TODO: associate file handles with tidyDoc and
-** ensure that tidyDocRelease() can close them all.
-**
-** Calling the withAllocator() family (
-** tidyCreateWithAllocator, tidyBufInitWithAllocator,
-** tidyBufAllocWithAllocator) allow settings custom
-** allocators).
-**
-** All parts of the document use the same allocator.
-** Calls that require a user provided buffer can
-** optionally use a different allocator.
-**
-** For reference in designing a plug-in allocator,
-** most allocations made by tidy are less than 100
-** bytes, corresponding to attribute names/values, etc.
-**
-** There is also an additional class of much larger
-** allocations which are where most of the data from
-** the lexer is stored.  (It is not currently possible
-** to use a separate allocator for the lexer, this
-** would be a useful extension).
-**
-** In general, approximately 1/3rd of the memory
-** used by tidy is freed during the parse, so if
-** memory usage is an issue then an allocator that 
-** can reuse this memory is a good idea.
-**
-** @{
-*/
-
-/** Prototype for the allocator's function table */
-struct _TidyAllocatorVtbl;
-/** The allocators function table */
-typedef struct _TidyAllocatorVtbl TidyAllocatorVtbl;
-
-/** Prototype for the allocator */
-struct _TidyAllocator;
-/** The allocator **/
-typedef struct _TidyAllocator TidyAllocator;
-
-/** An allocator's function table.  All functions here must
-    be provided.
- */
-struct _TidyAllocatorVtbl {
-    /** Called to allocate a block of nBytes of memory */
-    void* (TIDY_CALL *alloc)( TidyAllocator *self, size_t nBytes );
-    /** Called to resize (grow, in general) a block of memory.
-        Must support being called with NULL.
-    */
-    void* (TIDY_CALL *realloc)( TidyAllocator *self, void *block, size_t nBytes );
-    /** Called to free a previously allocated block of memory */
-    void (TIDY_CALL *free)( TidyAllocator *self, void *block);
-    /** Called when a panic condition is detected.  Must support
-        block == NULL.  This function is not called if either alloc 
-        or realloc fails; it is up to the allocator to do this.
-        Currently this function can only be called if an error is
-        detected in the tree integrity via the internal function
-        CheckNodeIntegrity().  This is a situation that can
-        only arise in the case of a programming error in tidylib.
-        You can turn off node integrity checking by defining
-        the constant NO_NODE_INTEGRITY_CHECK during the build.
-    **/
-    void (TIDY_CALL *panic)( TidyAllocator *self, ctmbstr msg );
-};
-
-/** An allocator.  To create your own allocator, do something like
-    the following:
-    
-    typedef struct _MyAllocator {
-       TidyAllocator base;
-       ...other custom allocator state...
-    } MyAllocator;
-    
-    void* MyAllocator_alloc(TidyAllocator *base, void *block, size_t nBytes)
-    {
-        MyAllocator *self = (MyAllocator*)base;
-        ...
-    }
-    (etc)
-
-    static const TidyAllocatorVtbl MyAllocatorVtbl = {
-        MyAllocator_alloc,
-        MyAllocator_realloc,
-        MyAllocator_free,
-        MyAllocator_panic
-    };
-
-    myAllocator allocator;
-    TidyDoc doc;
-
-    allocator.base.vtbl = &amp;MyAllocatorVtbl;
-    ...initialise allocator specific state...
-    doc = tidyCreateWithAllocator(&allocator);
-    ...
-
-    Although this looks slightly long winded, the advantage is that to create
-    a custom allocator you simply need to set the vtbl pointer correctly.
-    The vtbl itself can reside in static/global data, and hence does not
-    need to be initialised each time an allocator is created, and furthermore
-    the memory is shared amongst all created allocators.
-*/
-struct _TidyAllocator {
-    const TidyAllocatorVtbl *vtbl;
-};
-
-/** Callback for "malloc" replacement */
-typedef void* (TIDY_CALL *TidyMalloc)( size_t len );
-/** Callback for "realloc" replacement */
-typedef void* (TIDY_CALL *TidyRealloc)( void* buf, size_t len );
-/** Callback for "free" replacement */
-typedef void  (TIDY_CALL *TidyFree)( void* buf );
-/** Callback for "out of memory" panic state */
-typedef void  (TIDY_CALL *TidyPanic)( ctmbstr mssg );
-
-
-/** Give Tidy a malloc() replacement */
-TIDY_EXPORT Bool TIDY_CALL tidySetMallocCall( TidyMalloc fmalloc );
-/** Give Tidy a realloc() replacement */
-TIDY_EXPORT Bool TIDY_CALL tidySetReallocCall( TidyRealloc frealloc );
-/** Give Tidy a free() replacement */
-TIDY_EXPORT Bool TIDY_CALL tidySetFreeCall( TidyFree ffree );
-/** Give Tidy an "out of memory" handler */
-TIDY_EXPORT Bool TIDY_CALL tidySetPanicCall( TidyPanic fpanic );
-
-/** @} end Memory group */
-
-/** @defgroup Basic Basic Operations
-**
-** Tidy public interface
-**
-** Several functions return an integer document status:
-**
-** <pre>
-** 0    -> SUCCESS
-** >0   -> 1 == TIDY WARNING, 2 == TIDY ERROR
-** <0   -> SEVERE ERROR
-** </pre>
-** 
-The following is a short example program.
-
-<pre>
-#include &lt;tidy.h&gt;
-#include &lt;buffio.h&gt;
-#include &lt;stdio.h&gt;
-#include &lt;errno.h&gt;
-
-
-int main(int argc, char **argv )
-{
-  const char* input = "&lt;title&gt;Foo&lt;/title&gt;&lt;p&gt;Foo!";
-  TidyBuffer output;
-  TidyBuffer errbuf;
-  int rc = -1;
-  Bool ok;
-
-  TidyDoc tdoc = tidyCreate();                     // Initialize "document"
-  tidyBufInit( &amp;output );
-  tidyBufInit( &amp;errbuf );
-  printf( "Tidying:\t\%s\\n", input );
-
-  ok = tidyOptSetBool( tdoc, TidyXhtmlOut, yes );  // Convert to XHTML
-  if ( ok )
-    rc = tidySetErrorBuffer( tdoc, &amp;errbuf );      // Capture diagnostics
-  if ( rc &gt;= 0 )
-    rc = tidyParseString( tdoc, input );           // Parse the input
-  if ( rc &gt;= 0 )
-    rc = tidyCleanAndRepair( tdoc );               // Tidy it up!
-  if ( rc &gt;= 0 )
-    rc = tidyRunDiagnostics( tdoc );               // Kvetch
-  if ( rc &gt; 1 )                                    // If error, force output.
-    rc = ( tidyOptSetBool(tdoc, TidyForceOutput, yes) ? rc : -1 );
-  if ( rc &gt;= 0 )
-    rc = tidySaveBuffer( tdoc, &amp;output );          // Pretty Print
-
-  if ( rc &gt;= 0 )
-  {
-    if ( rc &gt; 0 )
-      printf( "\\nDiagnostics:\\n\\n\%s", errbuf.bp );
-    printf( "\\nAnd here is the result:\\n\\n\%s", output.bp );
-  }
-  else
-    printf( "A severe error (\%d) occurred.\\n", rc );
-
-  tidyBufFree( &amp;output );
-  tidyBufFree( &amp;errbuf );
-  tidyRelease( tdoc );
-  return rc;
-}
-</pre>
-** @{
-*/
-
-TIDY_EXPORT TidyDoc TIDY_CALL     tidyCreate(void);
-TIDY_EXPORT TidyDoc TIDY_CALL     tidyCreateWithAllocator( TidyAllocator *allocator );
-TIDY_EXPORT void TIDY_CALL        tidyRelease( TidyDoc tdoc );
-
-/** Let application store a chunk of data w/ each Tidy instance.
-**  Useful for callbacks.
-*/
-TIDY_EXPORT void TIDY_CALL        tidySetAppData( TidyDoc tdoc, void* appData );
-
-/** Get application data set previously */
-TIDY_EXPORT void* TIDY_CALL       tidyGetAppData( TidyDoc tdoc );
-
-/** Get release date (version) for current library */
-TIDY_EXPORT ctmbstr TIDY_CALL     tidyReleaseDate(void);
-
-/* Diagnostics and Repair
-*/
-
-/** Get status of current document. */
-TIDY_EXPORT int TIDY_CALL         tidyStatus( TidyDoc tdoc );
-
-/** Detected HTML version: 0, 2, 3 or 4 */
-TIDY_EXPORT int TIDY_CALL         tidyDetectedHtmlVersion( TidyDoc tdoc );
-
-/** Input is XHTML? */
-TIDY_EXPORT Bool TIDY_CALL        tidyDetectedXhtml( TidyDoc tdoc );
-
-/** Input is generic XML (not HTML or XHTML)? */
-TIDY_EXPORT Bool TIDY_CALL        tidyDetectedGenericXml( TidyDoc tdoc );
-
-/** Number of Tidy errors encountered.  If > 0, output is suppressed
-**  unless TidyForceOutput is set.
-*/
-TIDY_EXPORT uint TIDY_CALL        tidyErrorCount( TidyDoc tdoc );
-
-/** Number of Tidy warnings encountered. */
-TIDY_EXPORT uint TIDY_CALL        tidyWarningCount( TidyDoc tdoc );
-
-/** Number of Tidy accessibility warnings encountered. */
-TIDY_EXPORT uint TIDY_CALL        tidyAccessWarningCount( TidyDoc tdoc );
-
-/** Number of Tidy configuration errors encountered. */
-TIDY_EXPORT uint TIDY_CALL        tidyConfigErrorCount( TidyDoc tdoc );
-
-/* Get/Set configuration options
-*/
-/** Load an ASCII Tidy configuration file */
-TIDY_EXPORT int TIDY_CALL         tidyLoadConfig( TidyDoc tdoc, ctmbstr configFile );
-
-/** Load a Tidy configuration file with the specified character encoding */
-TIDY_EXPORT int TIDY_CALL         tidyLoadConfigEnc( TidyDoc tdoc, ctmbstr configFile,
-                                                     ctmbstr charenc );
-
-TIDY_EXPORT Bool TIDY_CALL        tidyFileExists( TidyDoc tdoc, ctmbstr filename );
-
-
-/** Set the input/output character encoding for parsing markup.
-**  Values include: ascii, latin1, raw, utf8, iso2022, mac,
-**  win1252, utf16le, utf16be, utf16, big5 and shiftjis.  Case in-sensitive.
-*/
-TIDY_EXPORT int TIDY_CALL         tidySetCharEncoding( TidyDoc tdoc, ctmbstr encnam );
-
-/** Set the input encoding for parsing markup.
-** As for tidySetCharEncoding but only affects the input encoding
-**/
-TIDY_EXPORT int TIDY_CALL         tidySetInCharEncoding( TidyDoc tdoc, ctmbstr encnam );
-
-/** Set the output encoding.
-**/
-TIDY_EXPORT int TIDY_CALL         tidySetOutCharEncoding( TidyDoc tdoc, ctmbstr encnam );
-
-/** @} end Basic group */
-
-
-/** @defgroup Configuration Configuration Options
-**
-** Functions for getting and setting Tidy configuration options.
-** @{
-*/
-
-/** Applications using TidyLib may want to augment command-line and
-**  configuration file options.  Setting this callback allows an application 
-**  developer to examine command-line and configuration file options after
-**  TidyLib has examined them and failed to recognize them.
-**/
-
-typedef Bool (TIDY_CALL *TidyOptCallback)( ctmbstr option, ctmbstr value );
-
-TIDY_EXPORT Bool TIDY_CALL          tidySetOptionCallback( TidyDoc tdoc, TidyOptCallback pOptCallback );
-
-/** Get option ID by name */
-TIDY_EXPORT TidyOptionId TIDY_CALL  tidyOptGetIdForName( ctmbstr optnam );
-
-/** Get iterator for list of option */
-/** 
-Example:
-<pre>
-TidyIterator itOpt = tidyGetOptionList( tdoc );
-while ( itOpt )
-{
-  TidyOption opt = tidyGetNextOption( tdoc, &itOpt );
-  .. get/set option values ..
-}
-</pre>
-*/
-
-TIDY_EXPORT TidyIterator TIDY_CALL  tidyGetOptionList( TidyDoc tdoc );
-/** Get next Option */
-TIDY_EXPORT TidyOption TIDY_CALL    tidyGetNextOption( TidyDoc tdoc, TidyIterator* pos );
-
-/** Lookup option by ID */
-TIDY_EXPORT TidyOption TIDY_CALL    tidyGetOption( TidyDoc tdoc, TidyOptionId optId );
-/** Lookup option by name */
-TIDY_EXPORT TidyOption TIDY_CALL    tidyGetOptionByName( TidyDoc tdoc, ctmbstr optnam );
-
-/** Get ID of given Option */
-TIDY_EXPORT TidyOptionId TIDY_CALL  tidyOptGetId( TidyOption opt );
-
-/** Get name of given Option */
-TIDY_EXPORT ctmbstr TIDY_CALL       tidyOptGetName( TidyOption opt );
-
-/** Get datatype of given Option */
-TIDY_EXPORT TidyOptionType TIDY_CALL tidyOptGetType( TidyOption opt );
-
-/** Is Option read-only? */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptIsReadOnly( TidyOption opt );
-
-/** Get category of given Option */
-TIDY_EXPORT TidyConfigCategory TIDY_CALL tidyOptGetCategory( TidyOption opt );
-
-/** Get default value of given Option as a string */
-TIDY_EXPORT ctmbstr TIDY_CALL       tidyOptGetDefault( TidyOption opt );
-
-/** Get default value of given Option as an unsigned integer */
-TIDY_EXPORT uint  TIDY_CALL         tidyOptGetDefaultInt( TidyOption opt );
-
-/** Get default value of given Option as a Boolean value */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptGetDefaultBool( TidyOption opt );
-
-/** Iterate over Option "pick list" */
-TIDY_EXPORT TidyIterator TIDY_CALL  tidyOptGetPickList( TidyOption opt );
-/** Get next string value of Option "pick list" */
-TIDY_EXPORT ctmbstr TIDY_CALL       tidyOptGetNextPick( TidyOption opt, TidyIterator* pos );
-
-/** Get current Option value as a string */
-TIDY_EXPORT ctmbstr TIDY_CALL       tidyOptGetValue( TidyDoc tdoc, TidyOptionId optId );
-/** Set Option value as a string */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptSetValue( TidyDoc tdoc, TidyOptionId optId, ctmbstr val );
-/** Set named Option value as a string.  Good if not sure of type. */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptParseValue( TidyDoc tdoc, ctmbstr optnam, ctmbstr val );
-
-/** Get current Option value as an integer */
-TIDY_EXPORT uint  TIDY_CALL         tidyOptGetInt( TidyDoc tdoc, TidyOptionId optId );
-/** Set Option value as an integer */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptSetInt( TidyDoc tdoc, TidyOptionId optId, uint val );
-
-/** Get current Option value as a Boolean flag */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptGetBool( TidyDoc tdoc, TidyOptionId optId );
-/** Set Option value as a Boolean flag */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptSetBool( TidyDoc tdoc, TidyOptionId optId, Bool val );
-
-/** Reset option to default value by ID */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptResetToDefault( TidyDoc tdoc, TidyOptionId opt );
-/** Reset all options to their default values */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptResetAllToDefault( TidyDoc tdoc );
-
-/** Take a snapshot of current config settings */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptSnapshot( TidyDoc tdoc );
-/** Reset config settings to snapshot (after document processing) */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptResetToSnapshot( TidyDoc tdoc );
-
-/** Any settings different than default? */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptDiffThanDefault( TidyDoc tdoc );
-/** Any settings different than snapshot? */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptDiffThanSnapshot( TidyDoc tdoc );
-
-/** Copy current configuration settings from one document to another */
-TIDY_EXPORT Bool TIDY_CALL          tidyOptCopyConfig( TidyDoc tdocTo, TidyDoc tdocFrom );
-
-/** Get character encoding name.  Used with TidyCharEncoding,
-**  TidyOutCharEncoding, TidyInCharEncoding */
-TIDY_EXPORT ctmbstr TIDY_CALL       tidyOptGetEncName( TidyDoc tdoc, TidyOptionId optId );
-
-/** Get current pick list value for option by ID.  Useful for enum types. */
-TIDY_EXPORT ctmbstr TIDY_CALL       tidyOptGetCurrPick( TidyDoc tdoc, TidyOptionId optId);
-
-/** Iterate over user declared tags */
-TIDY_EXPORT TidyIterator TIDY_CALL  tidyOptGetDeclTagList( TidyDoc tdoc );
-/** Get next declared tag of specified type: TidyInlineTags, TidyBlockTags,
-**  TidyEmptyTags, TidyPreTags */
-TIDY_EXPORT ctmbstr TIDY_CALL       tidyOptGetNextDeclTag( TidyDoc tdoc, 
-                                                          TidyOptionId optId,
-                                                          TidyIterator* iter );
-/** Get option description */
-TIDY_EXPORT ctmbstr TIDY_CALL       tidyOptGetDoc( TidyDoc tdoc, TidyOption opt );
-
-/** Iterate over a list of related options */
-TIDY_EXPORT TidyIterator TIDY_CALL  tidyOptGetDocLinksList( TidyDoc tdoc,
-                                                  TidyOption opt );
-/** Get next related option */
-TIDY_EXPORT TidyOption TIDY_CALL    tidyOptGetNextDocLinks( TidyDoc tdoc,
-                                                  TidyIterator* pos );
-
-/** @} end Configuration group */
-
-/** @defgroup IO  I/O and Messages
-**
-** By default, Tidy will define, create and use 
-** instances of input and output handlers for 
-** standard C buffered I/O (i.e. FILE* stdin,
-** FILE* stdout and FILE* stderr for content
-** input, content output and diagnostic output,
-** respectively.  A FILE* cfgFile input handler
-** will be used for config files.  Command line
-** options will just be set directly.
-**
-** @{
-*/
-
-/*****************
-   Input Source
-*****************/
-/** Input Callback: get next byte of input */
-typedef int  (TIDY_CALL *TidyGetByteFunc)( void* sourceData );
-
-/** Input Callback: unget a byte of input */
-typedef void (TIDY_CALL *TidyUngetByteFunc)( void* sourceData, byte bt );
-
-/** Input Callback: is end of input? */
-typedef Bool (TIDY_CALL *TidyEOFFunc)( void* sourceData );
-
-/** End of input "character" */
-#define EndOfStream (~0u)
-
-/** TidyInputSource - Delivers raw bytes of input
-*/
-TIDY_STRUCT
-typedef struct _TidyInputSource
-{
-  /* Instance data */
-  void*               sourceData;  /**< Input context.  Passed to callbacks */
-
-  /* Methods */
-  TidyGetByteFunc     getByte;     /**< Pointer to "get byte" callback */
-  TidyUngetByteFunc   ungetByte;   /**< Pointer to "unget" callback */
-  TidyEOFFunc         eof;         /**< Pointer to "eof" callback */
-} TidyInputSource;
-
-/** Facilitates user defined source by providing
-**  an entry point to marshal pointers-to-functions.
-**  Needed by .NET and possibly other language bindings.
-*/
-TIDY_EXPORT Bool TIDY_CALL tidyInitSource( TidyInputSource*  source,
-                                          void*             srcData,
-                                          TidyGetByteFunc   gbFunc,
-                                          TidyUngetByteFunc ugbFunc,
-                                          TidyEOFFunc       endFunc );
-
-/** Helper: get next byte from input source */
-TIDY_EXPORT uint TIDY_CALL tidyGetByte( TidyInputSource* source );
-
-/** Helper: unget byte back to input source */
-TIDY_EXPORT void TIDY_CALL tidyUngetByte( TidyInputSource* source, uint byteValue );
-
-/** Helper: check if input source at end */
-TIDY_EXPORT Bool TIDY_CALL tidyIsEOF( TidyInputSource* source );
-
-
-/****************
-   Output Sink
-****************/
-/** Output callback: send a byte to output */
-typedef void (TIDY_CALL *TidyPutByteFunc)( void* sinkData, byte bt );
-
-
-/** TidyOutputSink - accepts raw bytes of output
-*/
-TIDY_STRUCT
-typedef struct _TidyOutputSink
-{
-  /* Instance data */
-  void*               sinkData;  /**< Output context.  Passed to callbacks */
-
-  /* Methods */
-  TidyPutByteFunc     putByte;   /**< Pointer to "put byte" callback */
-} TidyOutputSink;
-
-/** Facilitates user defined sinks by providing
-**  an entry point to marshal pointers-to-functions.
-**  Needed by .NET and possibly other language bindings.
-*/
-TIDY_EXPORT Bool TIDY_CALL tidyInitSink( TidyOutputSink* sink, 
-                                        void*           snkData,
-                                        TidyPutByteFunc pbFunc );
-
-/** Helper: send a byte to output */
-TIDY_EXPORT void TIDY_CALL tidyPutByte( TidyOutputSink* sink, uint byteValue );
-
-
-/** Callback to filter messages by diagnostic level:
-**  info, warning, etc.  Just set diagnostic output 
-**  handler to redirect all diagnostics output.  Return true
-**  to proceed with output, false to cancel.
-*/
-typedef Bool (TIDY_CALL *TidyReportFilter)( TidyDoc tdoc, TidyReportLevel lvl,
-                                           uint line, uint col, ctmbstr mssg );
-
-/** Give Tidy a filter callback to use */
-TIDY_EXPORT Bool TIDY_CALL    tidySetReportFilter( TidyDoc tdoc,
-                                                  TidyReportFilter filtCallback );
-
-/** Set error sink to named file */
-TIDY_EXPORT FILE* TIDY_CALL   tidySetErrorFile( TidyDoc tdoc, ctmbstr errfilnam );
-/** Set error sink to given buffer */
-TIDY_EXPORT int TIDY_CALL     tidySetErrorBuffer( TidyDoc tdoc, TidyBuffer* errbuf );
-/** Set error sink to given generic sink */
-TIDY_EXPORT int TIDY_CALL     tidySetErrorSink( TidyDoc tdoc, TidyOutputSink* sink );
-
-/** @} end IO group */
-
-/* TODO: Catalog all messages for easy translation
-TIDY_EXPORT ctmbstr     tidyLookupMessage( int errorNo );
-*/
-
-
-
-/** @defgroup Parse Document Parse
-**
-** Parse markup from a given input source.  String and filename 
-** functions added for convenience.  HTML/XHTML version determined
-** from input.
-** @{
-*/
-
-/** Parse markup in named file */
-TIDY_EXPORT int TIDY_CALL         tidyParseFile( TidyDoc tdoc, ctmbstr filename );
-
-/** Parse markup from the standard input */
-TIDY_EXPORT int TIDY_CALL         tidyParseStdin( TidyDoc tdoc );
-
-/** Parse markup in given string */
-TIDY_EXPORT int TIDY_CALL         tidyParseString( TidyDoc tdoc, ctmbstr content );
-
-/** Parse markup in given buffer */
-TIDY_EXPORT int TIDY_CALL         tidyParseBuffer( TidyDoc tdoc, TidyBuffer* buf );
-
-/** Parse markup in given generic input source */
-TIDY_EXPORT int TIDY_CALL         tidyParseSource( TidyDoc tdoc, TidyInputSource* source);
-
-/** @} End Parse group */
-
-
-/** @defgroup Clean Diagnostics and Repair
-**
-** @{
-*/
-/** Execute configured cleanup and repair operations on parsed markup */
-TIDY_EXPORT int TIDY_CALL         tidyCleanAndRepair( TidyDoc tdoc );
-
-/** Run configured diagnostics on parsed and repaired markup. 
-**  Must call tidyCleanAndRepair() first.
-*/
-TIDY_EXPORT int TIDY_CALL         tidyRunDiagnostics( TidyDoc tdoc );
-
-/** @} end Clean group */
-
-
-/** @defgroup Save Document Save Functions
-**
-** Save currently parsed document to the given output sink.  File name
-** and string/buffer functions provided for convenience.
-** @{
-*/
-
-/** Save to named file */
-TIDY_EXPORT int TIDY_CALL         tidySaveFile( TidyDoc tdoc, ctmbstr filename );
-
-/** Save to standard output (FILE*) */
-TIDY_EXPORT int TIDY_CALL         tidySaveStdout( TidyDoc tdoc );
-
-/** Save to given TidyBuffer object */
-TIDY_EXPORT int TIDY_CALL         tidySaveBuffer( TidyDoc tdoc, TidyBuffer* buf );
-
-/** Save document to application buffer.  If buffer is not big enough,
-**  ENOMEM will be returned and the necessary buffer size will be placed
-**  in *buflen.
-*/
-TIDY_EXPORT int TIDY_CALL         tidySaveString( TidyDoc tdoc,
-                                                 tmbstr buffer, uint* buflen );
-
-/** Save to given generic output sink */
-TIDY_EXPORT int TIDY_CALL         tidySaveSink( TidyDoc tdoc, TidyOutputSink* sink );
-
-/** @} end Save group */
-
-
-/** @addtogroup Basic
-** @{
-*/
-/** Save current settings to named file.
-    Only non-default values are written. */
-TIDY_EXPORT int TIDY_CALL         tidyOptSaveFile( TidyDoc tdoc, ctmbstr cfgfil );
-
-/** Save current settings to given output sink.
-    Only non-default values are written. */
-TIDY_EXPORT int TIDY_CALL         tidyOptSaveSink( TidyDoc tdoc, TidyOutputSink* sink );
-
-
-/* Error reporting functions 
-*/
-
-/** Write more complete information about errors to current error sink. */
-TIDY_EXPORT void TIDY_CALL        tidyErrorSummary( TidyDoc tdoc );
-
-/** Write more general information about markup to current error sink. */
-TIDY_EXPORT void TIDY_CALL        tidyGeneralInfo( TidyDoc tdoc );
-
-/** @} end Basic group (again) */
-
-
-/** @defgroup Tree Document Tree
-**
-** A parsed and, optionally, repaired document is
-** represented by Tidy as a Tree, much like a W3C DOM.
-** This tree may be traversed using these functions.
-** The following snippet gives a basic idea how these
-** functions can be used.
-**
-<pre>
-void dumpNode( TidyNode tnod, int indent )
-{
-  TidyNode child;
-
-  for ( child = tidyGetChild(tnod); child; child = tidyGetNext(child) )
-  {
-    ctmbstr name;
-    switch ( tidyNodeGetType(child) )
-    {
-    case TidyNode_Root:       name = "Root";                    break;
-    case TidyNode_DocType:    name = "DOCTYPE";                 break;
-    case TidyNode_Comment:    name = "Comment";                 break;
-    case TidyNode_ProcIns:    name = "Processing Instruction";  break;
-    case TidyNode_Text:       name = "Text";                    break;
-    case TidyNode_CDATA:      name = "CDATA";                   break;
-    case TidyNode_Section:    name = "XML Section";             break;
-    case TidyNode_Asp:        name = "ASP";                     break;
-    case TidyNode_Jste:       name = "JSTE";                    break;
-    case TidyNode_Php:        name = "PHP";                     break;
-    case TidyNode_XmlDecl:    name = "XML Declaration";         break;
-
-    case TidyNode_Start:
-    case TidyNode_End:
-    case TidyNode_StartEnd:
-    default:
-      name = tidyNodeGetName( child );
-      break;
-    }
-    assert( name != NULL );
-    printf( "\%*.*sNode: \%s\\n", indent, indent, " ", name );
-    dumpNode( child, indent + 4 );
-  }
-}
-
-void dumpDoc( TidyDoc tdoc )
-{
-  dumpNode( tidyGetRoot(tdoc), 0 );
-}
-
-void dumpBody( TidyDoc tdoc )
-{
-  dumpNode( tidyGetBody(tdoc), 0 );
-}
-</pre>
-
-@{
-
-*/
-
-TIDY_EXPORT TidyNode TIDY_CALL    tidyGetRoot( TidyDoc tdoc );
-TIDY_EXPORT TidyNode TIDY_CALL    tidyGetHtml( TidyDoc tdoc );
-TIDY_EXPORT TidyNode TIDY_CALL    tidyGetHead( TidyDoc tdoc );
-TIDY_EXPORT TidyNode TIDY_CALL    tidyGetBody( TidyDoc tdoc );
-
-/* parent / child */
-TIDY_EXPORT TidyNode TIDY_CALL    tidyGetParent( TidyNode tnod );
-TIDY_EXPORT TidyNode TIDY_CALL    tidyGetChild( TidyNode tnod );
-
-/* siblings */
-TIDY_EXPORT TidyNode TIDY_CALL    tidyGetNext( TidyNode tnod );
-TIDY_EXPORT TidyNode TIDY_CALL    tidyGetPrev( TidyNode tnod );
-
-/* Null for non-element nodes and all pure HTML
-TIDY_EXPORT ctmbstr     tidyNodeNsLocal( TidyNode tnod );
-TIDY_EXPORT ctmbstr     tidyNodeNsPrefix( TidyNode tnod );
-TIDY_EXPORT ctmbstr     tidyNodeNsUri( TidyNode tnod );
-*/
-
-/* Iterate over attribute values */
-TIDY_EXPORT TidyAttr TIDY_CALL    tidyAttrFirst( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL    tidyAttrNext( TidyAttr tattr );
-
-TIDY_EXPORT ctmbstr TIDY_CALL     tidyAttrName( TidyAttr tattr );
-TIDY_EXPORT ctmbstr TIDY_CALL     tidyAttrValue( TidyAttr tattr );
-
-/* Null for pure HTML
-TIDY_EXPORT ctmbstr     tidyAttrNsLocal( TidyAttr tattr );
-TIDY_EXPORT ctmbstr     tidyAttrNsPrefix( TidyAttr tattr );
-TIDY_EXPORT ctmbstr     tidyAttrNsUri( TidyAttr tattr );
-*/
-
-/** @} end Tree group */
-
-
-/** @defgroup NodeAsk Node Interrogation
-**
-** Get information about any givent node.
-** @{
-*/
-
-/* Node info */
-TIDY_EXPORT TidyNodeType TIDY_CALL tidyNodeGetType( TidyNode tnod );
-TIDY_EXPORT ctmbstr TIDY_CALL     tidyNodeGetName( TidyNode tnod );
-
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsText( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsProp( TidyDoc tdoc, TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsHeader( TidyNode tnod ); /* h1, h2, ... */
-
-TIDY_EXPORT Bool TIDY_CALL tidyNodeHasText( TidyDoc tdoc, TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeGetText( TidyDoc tdoc, TidyNode tnod, TidyBuffer* buf );
-
-/* Copy the unescaped value of this node into the given TidyBuffer as UTF-8 */
-TIDY_EXPORT Bool TIDY_CALL tidyNodeGetValue( TidyDoc tdoc, TidyNode tnod, TidyBuffer* buf );
-
-TIDY_EXPORT TidyTagId TIDY_CALL tidyNodeGetId( TidyNode tnod );
-
-TIDY_EXPORT uint TIDY_CALL tidyNodeLine( TidyNode tnod );
-TIDY_EXPORT uint TIDY_CALL tidyNodeColumn( TidyNode tnod );
-
-/** @defgroup NodeIsElementName Deprecated node interrogation per TagId
-**
-** @deprecated The functions tidyNodeIs{ElementName} are deprecated and 
-** should be replaced by tidyNodeGetId.
-** @{
-*/
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsHTML( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsHEAD( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTITLE( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBASE( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsMETA( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBODY( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsFRAMESET( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsFRAME( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsIFRAME( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsNOFRAMES( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsHR( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH1( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH2( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsPRE( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLISTING( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsP( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsUL( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsOL( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDL( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDIR( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLI( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDT( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDD( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTABLE( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsCAPTION( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTD( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTH( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTR( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsCOL( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsCOLGROUP( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBR( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsA( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLINK( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsB( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsI( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSTRONG( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsEM( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBIG( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSMALL( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsPARAM( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsOPTION( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsOPTGROUP( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsIMG( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsMAP( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsAREA( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsNOBR( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsWBR( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsFONT( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLAYER( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSPACER( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsCENTER( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSTYLE( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSCRIPT( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsNOSCRIPT( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsFORM( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTEXTAREA( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBLOCKQUOTE( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsAPPLET( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsOBJECT( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDIV( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSPAN( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsINPUT( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsQ( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLABEL( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH3( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH4( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH5( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH6( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsADDRESS( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsXMP( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSELECT( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBLINK( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsMARQUEE( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsEMBED( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBASEFONT( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsISINDEX( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsS( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSTRIKE( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsU( TidyNode tnod );
-TIDY_EXPORT Bool TIDY_CALL tidyNodeIsMENU( TidyNode tnod );
-
-/** @} End NodeIsElementName group */
-
-/** @} End NodeAsk group */
-
-
-/** @defgroup Attribute Attribute Interrogation
-**
-** Get information about any given attribute.
-** @{
-*/
-
-TIDY_EXPORT TidyAttrId TIDY_CALL tidyAttrGetId( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsEvent( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsProp( TidyAttr tattr );
-
-/** @defgroup AttrIsAttributeName Deprecated attribute interrogation per AttrId
-**
-** @deprecated The functions  tidyAttrIs{AttributeName} are deprecated and 
-** should be replaced by tidyAttrGetId.
-** @{
-*/
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsHREF( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsSRC( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsID( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsNAME( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsSUMMARY( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsALT( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsLONGDESC( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsUSEMAP( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsISMAP( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsLANGUAGE( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsTYPE( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsVALUE( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsCONTENT( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsTITLE( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsXMLNS( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsDATAFLD( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsWIDTH( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsHEIGHT( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsFOR( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsSELECTED( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsCHECKED( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsLANG( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsTARGET( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsHTTP_EQUIV( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsREL( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEMOVE( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEDOWN( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEUP( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnCLICK( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEOVER( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEOUT( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnKEYDOWN( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnKEYUP( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnKEYPRESS( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnFOCUS( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnBLUR( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsBGCOLOR( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsLINK( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsALINK( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsVLINK( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsTEXT( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsSTYLE( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsABBR( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsCOLSPAN( TidyAttr tattr );
-TIDY_EXPORT Bool TIDY_CALL tidyAttrIsROWSPAN( TidyAttr tattr );
-
-/** @} End AttrIsAttributeName group */
-
-/** @} end AttrAsk group */
-
-
-/** @defgroup AttrGet Attribute Retrieval
-**
-** Lookup an attribute from a given node
-** @{
-*/
-
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetById( TidyNode tnod, TidyAttrId attId );
-
-/** @defgroup AttrGetAttributeName Deprecated attribute retrieval per AttrId
-**
-** @deprecated The functions tidyAttrGet{AttributeName} are deprecated and 
-** should be replaced by tidyAttrGetById.
-** For instance, tidyAttrGetID( TidyNode tnod ) can be replaced by 
-** tidyAttrGetById( TidyNode tnod, TidyAttr_ID ). This avoids a potential
-** name clash with tidyAttrGetId for case-insensitive languages.
-** @{
-*/
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetHREF( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSRC( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetID( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetNAME( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSUMMARY( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetALT( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLONGDESC( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetUSEMAP( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetISMAP( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLANGUAGE( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTYPE( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetVALUE( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetCONTENT( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTITLE( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetXMLNS( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetDATAFLD( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetWIDTH( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetHEIGHT( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetFOR( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSELECTED( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetCHECKED( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLANG( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTARGET( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetHTTP_EQUIV( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetREL( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEMOVE( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEDOWN( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEUP( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnCLICK( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEOVER( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEOUT( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnKEYDOWN( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnKEYUP( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnKEYPRESS( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnFOCUS( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnBLUR( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetBGCOLOR( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLINK( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetALINK( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetVLINK( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTEXT( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSTYLE( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetABBR( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetCOLSPAN( TidyNode tnod );
-TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetROWSPAN( TidyNode tnod );
-
-/** @} End AttrGetAttributeName group */
-
-/** @} end AttrGet group */
-
-TIDY_EXPORT void TIDY_CALL tidyDiscardContainer( TidyDoc tdoc, TidyNode tnod );
-TIDY_EXPORT void TIDY_CALL tidyDiscardElement( TidyDoc tdoc, TidyNode tnod );
-TIDY_EXPORT void TIDY_CALL tidyRemoveAttribute( TidyDoc tdoc, TidyNode tnod, TidyAttr tattr );
-
-#ifdef __cplusplus
-}  /* extern "C" */
-#endif
-#endif /* __TIDY_H__ */
-
-/*
- * local variables:
- * mode: c
- * indent-tabs-mode: nil
- * c-basic-offset: 4
- * eval: (c-set-offset 'substatement-open 0)
- * end:
- */


Mime
View raw message