corinthia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmke...@apache.org
Subject [47/63] [abbrv] [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 inter
Date Tue, 30 Dec 2014 14:45:11 GMT
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/ac70cb0e/DocFormats/3rdparty/external/w3c-tidy-html5/build/msvc2010/tidylib.vcxproj
----------------------------------------------------------------------
diff --git a/DocFormats/3rdparty/external/w3c-tidy-html5/build/msvc2010/tidylib.vcxproj b/DocFormats/3rdparty/external/w3c-tidy-html5/build/msvc2010/tidylib.vcxproj
deleted file mode 100644
index 7116907..0000000
--- a/DocFormats/3rdparty/external/w3c-tidy-html5/build/msvc2010/tidylib.vcxproj
+++ /dev/null
@@ -1,311 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>{A3EA53A3-86BB-4D0A-B999-D1EC9411DDD4}</ProjectGuid>
-    <RootNamespace>tidylib</RootNamespace>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>StaticLibrary</ConfigurationType>
-    <UseOfMfc>false</UseOfMfc>
-    <CharacterSet>MultiByte</CharacterSet>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>StaticLibrary</ConfigurationType>
-    <UseOfMfc>false</UseOfMfc>
-    <CharacterSet>MultiByte</CharacterSet>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup>
-    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)$(MSBuildProjectName)\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)$(MSBuildProjectName)\</IntDir>
-    <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
-    <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
-    <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
-    <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
-    <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
-    <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
-    <TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">libtidy</TargetName>
-    <TargetName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">libtidy</TargetName>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)$(MSBuildProjectName)\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)$(MSBuildProjectName)\</IntDir>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>../../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_LIB;WIN32;SUPPORT_UTF16_ENCODINGS;SUPPORT_ASIAN_ENCODINGS;SUPPORT_ACCESSIBILITY_CHECKS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Lib>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-    </Lib>
-    <Bscmake>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-    </Bscmake>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>../../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WIN32;_LIB;WIN32;SUPPORT_UTF16_ENCODINGS;SUPPORT_ASIAN_ENCODINGS;SUPPORT_ACCESSIBILITY_CHECKS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MinimalRebuild>true</MinimalRebuild>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
-      <DisableLanguageExtensions>true</DisableLanguageExtensions>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
-      <UndefinePreprocessorDefinitions>WINDOWS;%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Lib>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-    </Lib>
-    <Bscmake>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-    </Bscmake>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\src\access.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\alloc.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\attrask.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\attrdict.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\attrget.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\attrs.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\buffio.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\clean.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\config.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\entities.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\fileio.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\istack.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\lexer.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\localize.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\mappedio.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <DisableLanguageExtensions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</DisableLanguageExtensions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\parser.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\pprint.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\streamio.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\tagask.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\tags.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\tidylib.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\tmbstr.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\utf8.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\win32tc.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\src\gdoc.c">
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <UndefinePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\src\access.h" />
-    <ClInclude Include="..\..\src\attrdict.h" />
-    <ClInclude Include="..\..\src\attrs.h" />
-    <ClInclude Include="..\..\include\buffio.h" />
-    <ClInclude Include="..\..\src\clean.h" />
-    <ClInclude Include="..\..\src\config.h" />
-    <ClInclude Include="..\..\src\entities.h" />
-    <ClInclude Include="..\..\src\fileio.h" />
-    <ClInclude Include="..\..\src\forward.h" />
-    <ClInclude Include="..\..\src\lexer.h" />
-    <ClInclude Include="..\..\src\mappedio.h" />
-    <ClInclude Include="..\..\src\message.h" />
-    <ClInclude Include="..\..\src\parser.h" />
-    <ClInclude Include="..\..\include\platform.h" />
-    <ClInclude Include="..\..\src\pprint.h" />
-    <ClInclude Include="..\..\src\streamio.h" />
-    <ClInclude Include="..\..\src\tags.h" />
-    <ClInclude Include="..\..\src\tidy-int.h" />
-    <ClInclude Include="..\..\include\tidy.h" />
-    <ClInclude Include="..\..\include\tidyenum.h" />
-    <ClInclude Include="..\..\src\tmbstr.h" />
-    <ClInclude Include="..\..\src\utf8.h" />
-    <ClInclude Include="..\..\src\version.h" />
-    <ClInclude Include="..\..\src\win32tc.h" />
-    <ClInclude Include="..\..\src\gdoc.h" />
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/ac70cb0e/DocFormats/3rdparty/external/w3c-tidy-html5/build/readme.txt
----------------------------------------------------------------------
diff --git a/DocFormats/3rdparty/external/w3c-tidy-html5/build/readme.txt b/DocFormats/3rdparty/external/w3c-tidy-html5/build/readme.txt
deleted file mode 100644
index af94f18..0000000
--- a/DocFormats/3rdparty/external/w3c-tidy-html5/build/readme.txt
+++ /dev/null
@@ -1,40 +0,0 @@
-Tidy Build Files
-
-Each subdirectory contains input files to a selected
-build system for TidyLib and the command line driver.
-Some build systems are cross-platform (gmake, autoconf),
-others (msvc) are platform specific.  For details
-on any given build system, see the readme file for
-that system.
-
-Directory  System                Comments
----------  --------------------  --------------------------
-gmake      GNU Make              Used for "official" builds
-
-gnuauto    GNU AutoConf          Supports shared lib builds
-
-msvc       MS Visual C++ v6      Win32 only
-
-msvc2010   MS Visual Studio 2010 win32 only
-
-rpm        Script for packages   For Linux distribution supporting rpm
-
-
-Common Build Options
-
-There are some basic build options for TidyLib, independent
-of platform and build system.  Typically, these options can
-be enabled or disabled by setting a macro value within the
-Makefile or its equivalent.  An option may be disabled by
-setting its value to "0".  Enable by setting to "1".  Again,
-consult the directions for each build system for details
-on how to enable/disable each option.
-
-Option                        Default   Description
-----------------------------  --------  ---------------------------------
-DMALLOC                       Disabled  Use dmalloc for memory debugging
-SUPPORT_ACCESSIBILITY_CHECKS  Enabled   Support W3C WAI checks
-SUPPORT_UTF16_ENCODINGS       Enabled   Support Unicode documents
-SUPPORT_ASIAN_ENCODINGS       Enabled   Support Big5 and ShiftJIS docs
-
-

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/ac70cb0e/DocFormats/3rdparty/external/w3c-tidy-html5/build/rpm/readme.txt
----------------------------------------------------------------------
diff --git a/DocFormats/3rdparty/external/w3c-tidy-html5/build/rpm/readme.txt b/DocFormats/3rdparty/external/w3c-tidy-html5/build/rpm/readme.txt
deleted file mode 100644
index eb90528..0000000
--- a/DocFormats/3rdparty/external/w3c-tidy-html5/build/rpm/readme.txt
+++ /dev/null
@@ -1,40 +0,0 @@
-# Script for Building tidy rpm packages
-
-
-# To build the RPM packages for tidy on Redhat and other distros which support rpm.
-# For making Debian packages, first create rpm package and then generate
-# debian package by command "rpm2deb filename"
-
-
-
-The steps are as follows:
-
-
-1. Let's suppose TIDY_VERSION you are building is 02October2003
-
-
-2. Unpack original source tree
-        tar zxvf tidy_src.tgz
-   This will extract to a directory called tidy
-
-
-3. mv tidy tidy-02October2003
-   Edit the tidy.spec file inside directory tidy-02October2003
-   and make sure the Version variable is changed to 02October2003.
-   Also edit the Makefile and change prefix to "exactly" say this:
-        runinst_prefix=${RPMTMP}
-        devinst_prefix=${RPMTMP}
-
-
-4. tar zcvf tidy-02October2003.tgz tidy-02October2003
-
-
-5. rpmbuild -ta tidy-02October2003.tgz
-
-
-6. rm tidy-02October2003.tgz
-
-
-7. To derive Debian package for tidy run command on created rpm packages
-        rpm2deb tidy-02October2003-1.rpm
-

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/ac70cb0e/DocFormats/3rdparty/external/w3c-tidy-html5/build/rpm/tidy.spec
----------------------------------------------------------------------
diff --git a/DocFormats/3rdparty/external/w3c-tidy-html5/build/rpm/tidy.spec b/DocFormats/3rdparty/external/w3c-tidy-html5/build/rpm/tidy.spec
deleted file mode 100644
index aa76c91..0000000
--- a/DocFormats/3rdparty/external/w3c-tidy-html5/build/rpm/tidy.spec
+++ /dev/null
@@ -1,148 +0,0 @@
-# RPM spec file for tidy
-#
-#    (c) 2006 (W3C) MIT, ERCIM, Keio University
-#    See tidy.h for the copyright notice.
-#
-#  Contributing Author(s):
-#     Sierk Bornemann <bornemann@users.sourceforge.net>
-#
-# norootforbuild
-# neededforbuild  doxygen libxslt libtool
-
-BuildRequires: doxygen libxslt libtool 
-
-Name:                 tidy
-Version:              1.0
-Release:              YYMMDD
-%define docrelease    YYMMDD
-Summary:              Utility to clean up and pretty print HTML/XHTML/XML
-Group:                Applications/Tools
-License:              W3C Software License, MIT Licence, Other License(s), see package
-Autoreqprov:          on
-URL:                  http://tidy.sourceforge.net/
-Source0:              http://sourceforge.net/cvs/?group_id=27659
-Source1:              http://tidy.sourceforge.net/src/tidy_src.tgz
-Source2:              http://tidy.sourceforge.net/docs/tidy_docs.tgz
-BuildRoot:            %{_tmppath}/%{name}-%{version}-%{release}-build
-
-
-%description
-When editing HTML it's easy to make mistakes. Wouldn't it be nice if
-there was a simple way to fix these mistakes automatically and tidy up
-sloppy editing into nicely layed out markup? Well now there is! Dave
-Raggett's HTML TIDY is a free utility for doing just that. It also
-works great on the atrociously hard to read markup generated by
-specialized HTML editors and conversion tools, and can help you
-identify where you need to pay further attention on making your pages
-more accessible to people with disabilities.
-
-Tidy is able to fix up a wide range of problems and to bring to your
-attention things that you need to work on yourself. Each item found is
-listed with the line number and column so that you can see where the
-problem lies in your markup. Tidy won't generate a cleaned up version
-when there are problems that it can't be sure of how to handle. These
-are logged as "errors" rather than "warnings".
-
-
-Authors:
---------
-
-    Tidy was written by Dave Raggett <dsr@w3.org> and is now maintained 
-    and developed by the Tidy team at http://tidy.sourceforge.net/.
-
-
-%package     -n libtidy
-Summary:        Shared library for tidy
-Group:          Development/Libraries
-Autoreqprov:    on
-
-%description -n libtidy
-
-This package contains the library needed to run programs dynamically
-linked with tidy.
-
-
-%package     -n libtidy-devel
-Summary:        Development files for tidy
-Group:          Development/Libraries
-Requires:       libtidy = %{version}-%{release}
-Autoreqprov:    on
-
-
-%description -n libtidy-devel
-
-This package contains the headers, the shared libraries and the API 
-documentation which programmers will need to develop applications based on 
-tidy.
-
-%debug_package
-%prep
-%setup -q -n %{name} -b 1 
-mv htmldoc/doxygen.cfg Doxyfile
-
-
-%build
-export CFLAGS="$RPM_OPT_FLAGS"
-/bin/sh build/gnuauto/setup.sh
-
-%configure --disable-dependency-tracking \
-           --includedir=%{_includedir}/%{name}
-make %{?_smp_mflags} all
-make -C build/gmake/ doc
-doxygen
-
-
-%install
-rm -rf $RPM_BUILD_ROOT _api
-make install DESTDIR=$RPM_BUILD_ROOT
-# Manpage
-install -Dpm 644 htmldoc/tidy.1 $RPM_BUILD_ROOT%{_mandir}/man1/tidy.1
-# Quick Reference
-install -Dpm 644 htmldoc/quickref.html $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/quickref.html
-# Move API directory out of the way
-mv htmldoc/api _api
-
-
-%clean
-if ! test -f /.buildenv; then
-    rm -rf $RPM_BUILD_ROOT;
-fi
-
-
-%post -n lib%{name} -p /sbin/ldconfig
-
-%postun -n lib%{name} -p /sbin/ldconfig
-
-
-%files
-%defattr(-, root, root)
-%doc htmldoc/*
-%{_bindir}/tidy
-%{_bindir}/tab2space
-%{_mandir}/man1/tidy.1*
-
-
-%files -n libtidy
-%defattr(-, root, root)
-%doc htmldoc/license.html
-%{_libdir}/libtidy*.so.*
-
-
-%files -n libtidy-devel
-%defattr(-, root, root)
-%doc _api/*
-%{_includedir}/%{name}/*.h
-%{_libdir}/libtidy.so
-%{_libdir}/libtidy.a
-%exclude %{_libdir}/libtidy.la
-
-
-%changelog -n tidy
-* Thu Feb 22 2006 - Sierk Bornemann <bornemann@sourceforge.net>
-  Rewritten RPM Spec file:
-  - respects filesystem layout of current FHS-compliant linux distributions.
-  - respects current tidy Makefile and
-    creation of tidy docs (XSL transformation from tidy's XML output).
-
-* Mon Oct 25 2003 - Al Dev (Alavoor Vasudevan) <alavoor[at]yahoo.com>
-  - Initial version of %{name} rpm

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/ac70cb0e/DocFormats/3rdparty/external/w3c-tidy-html5/console/tab2space.c
----------------------------------------------------------------------
diff --git a/DocFormats/3rdparty/external/w3c-tidy-html5/console/tab2space.c b/DocFormats/3rdparty/external/w3c-tidy-html5/console/tab2space.c
deleted file mode 100644
index 2cdc434..0000000
--- a/DocFormats/3rdparty/external/w3c-tidy-html5/console/tab2space.c
+++ /dev/null
@@ -1,362 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "platform.h"
-
-#define true       1
-#define false      0
-#define TABSIZE    4
-
-#define DOS_CRLF   0
-#define UNIX_LF    1
-#define MAC_CR     2
-
-typedef struct
-{
-    Bool pushed;
-    int tabs;
-    int curcol;
-    int lastcol;
-    int maxcol;
-    int curline;
-    int pushed_char;
-    uint size;
-    uint length;
-    char *buf;
-    FILE *fp;
-} Stream;
-
-static int tabsize = TABSIZE;
-static int endline = DOS_CRLF;
-static Bool tabs = false;
-
-/*
- Memory allocation functions vary from one environment to
- the next, and experience shows that wrapping the local
- mechanisms up provides for greater flexibility and allows
- out of memory conditions to be detected in one place.
-*/
-void *MemAlloc(size_t size)
-{
-    void *p;
-
-    p = malloc(size);
-
-    if (!p)
-    {
-        fprintf(stderr, "***** Out of memory! *****\n");
-        exit(1);
-    }
-
-    return p;
-}
-
-void *MemRealloc(void *old, size_t size)
-{
-    void *p;
-
-    p = realloc(old, size);
-
-    if (!p)
-    {
-        fprintf(stderr, "***** Out of memory! *****\n");
-        return NULL;
-    }
-
-    return p;
-}
-
-void MemFree(void *p)
-{
-    free(p);
-    p = NULL;
-}
-
-static Stream *NewStream(FILE *fp)
-{
-    Stream *in;
-
-    in = (Stream *)MemAlloc(sizeof(Stream));
-
-    memset(in, 0, sizeof(Stream));
-    in->fp = fp;
-    return in;
-}
-
-static void FreeStream(Stream *in)
-{
-    if (in->buf)
-        MemFree(in->buf);
-
-    MemFree(in);
-}
-
-static void AddByte(Stream *in, uint c)
-{
-    if (in->size + 1 >= in->length)
-    {
-        while (in->size + 1 >= in->length)
-        {
-            if (in->length == 0)
-                in->length = 8192;
-            else
-                in->length = in->length * 2;
-        }
-
-        in->buf = (char *)MemRealloc(in->buf, in->length*sizeof(char));
-    }
-
-    in->buf[in->size++] = (char)c;
-    in->buf[in->size] = '\0';  /* debug */
-}
-
-
-
-/*
-  Read a character from a stream, keeping track
-  of lines, columns etc. This is used for parsing
-  markup and plain text etc. A single level
-  pushback is allowed with UngetChar(c, in).
-  Returns EndOfStream if there's nothing more to read.
-*/
-static int ReadChar(Stream *in)
-{
-    int c;
-
-    if (in->pushed)
-    {
-        in->pushed = false;
-
-        if (in->pushed_char == '\n')
-            in->curline--;
-
-        return in->pushed_char;
-    }
-
-    in->lastcol = in->curcol;
-
-    /* expanding tab ? */
-    if (in->tabs > 0)
-    {
-        in->curcol++;
-        in->tabs--;
-        return ' ';
-    }
-    
-    /* Else go on with normal buffer: */
-    for (;;)
-    {
-        c = getc(in->fp);
-
-        /* end of file? */
-        if (c == EOF)
-            break;
-
-        /* coerce \r\n  and isolated \r as equivalent to \n : */
-        if (c == '\r')
-        {
-            c = getc(in->fp);
-
-            if (c != '\n')
-                ungetc(c, in->fp);
-
-            c = '\n';
-        }
-
-        if (c == '\n')
-        {
-            if (in->maxcol < in->curcol)
-                in->maxcol = in->curcol;
-
-            in->curcol = 1;
-            in->curline++;
-            break;
-        }
-
-        if (c == '\t')
-        {
-            if (tabs)
-              in->curcol += tabsize - ((in->curcol - 1) % tabsize);
-            else /* expand to spaces */
-            {
-                in->tabs = tabsize - ((in->curcol - 1) % tabsize) - 1;
-                in->curcol++;
-                c = ' ';
-            }
-
-            break;
-        }
-
-        if (c == '\033')
-            break;
-
-        /* strip control characters including '\r' */
-
-        if (0 < c && c < 32)
-            continue;
-
-        in->curcol++;
-        break;
-    }
-
-    return c;
-}
-
-static Stream *ReadFile(FILE *fin)
-{
-    int c;
-    Stream *in  = NewStream(fin);
-
-    while ((c = ReadChar(in)) >= 0)
-        AddByte(in, (uint)c);
-
-    return in;
-}
-
-static void WriteFile(Stream *in, FILE *fout)
-{
-    int i, c;
-    char *p;
-
-    i = in->size;
-    p = in->buf;
-
-    while (i--)
-    {
-        c = *p++;
-
-        if (c == '\n')
-        {
-            if (endline == DOS_CRLF)
-            {
-                putc('\r', fout);
-                putc('\n', fout);
-            }
-            else if (endline == UNIX_LF)
-                putc('\n', fout);
-            else if (endline == MAC_CR)
-                putc('\r', fout);
-
-            continue;
-        }
-
-        putc(c, fout);
-    }
-}
-
-static void HelpText(FILE *errout, char *prog)
-{
-    fprintf(errout, "%s: [options] [infile [outfile]] ...\n", prog);
-    fprintf(errout, "Utility to expand tabs and ensure consistent line endings\n");
-    fprintf(errout, "options for tab2space vers: 6th February 2003\n");
-    fprintf(errout, "  -help or -h     display this help message\n");
-    fprintf(errout, "  -dos  or -crlf  set line ends to CRLF (PC-DOS/Windows - default)\n");
-    fprintf(errout, "  -mac  or -cr    set line ends to CR (classic Mac OS)\n");
-    fprintf(errout, "  -unix or -lf    set line ends to LF (Unix)\n");
-    fprintf(errout, "  -tabs           preserve tabs, e.g. for Makefile\n");
-    fprintf(errout, "  -t<n>           set tabs to <n> (default is 4) spaces\n");
-    fprintf(errout, "\nNote this utility doesn't map spaces to tabs!\n");
-}
-
-int main(int argc, char **argv)
-{
-    char const *infile, *outfile;
-    char *prog;
-    FILE *fin, *fout;
-    Stream *in = NULL;
-
-    prog = argv[0];
-
-    while (argc > 0)
-    {
-        if (argc > 1 && argv[1][0] == '-')
-        {
-            if (strcmp(argv[1], "-help") == 0 || argv[1][1] == 'h')
-            {
-                HelpText(stdout, prog);
-                return 1;
-            }
-
-            if (strcmp(argv[1], "-dos") == 0 ||
-                strcmp(argv[1], "-crlf") == 0)
-                 endline = DOS_CRLF;
-
-            else if (strcmp(argv[1], "-mac") == 0 ||
-                strcmp(argv[1], "-cr") == 0)
-                endline = MAC_CR;
-
-            else if (strcmp(argv[1], "-unix") == 0 ||
-                strcmp(argv[1], "-lf") == 0)
-                endline = UNIX_LF;
-
-            else if (strcmp(argv[1], "-tabs") == 0)
-                tabs = true;
-
-            else if (strncmp(argv[1], "-t", 2) == 0)
-                sscanf(argv[1]+2, "%d", &tabsize);
-
-            --argc;
-            ++argv;
-            continue;
-        }
-
-        if (argc > 1)
-        {
-            infile = argv[1];
-            fin = fopen(infile, "rb");
-        }
-        else
-        {
-            infile = "stdin";
-            fin = stdin;
-        }
-
-        if (argc > 2)
-        {
-            outfile = argv[2];
-            fout = NULL;
-            --argc;
-            ++argv;
-        }
-        else
-        {
-            outfile = "stdout";
-            fout = stdout;
-        }
-
-        if (fin)
-        {
-            in = ReadFile(fin);
-
-            if (fin != stdin)
-                fclose(fin);
-            
-            if (fout != stdout)
-               fout = fopen(outfile, "wb");
-            
-            if (fout)
-            {
-               WriteFile(in, fout);
-                
-               if (fout != stdout)
-                  fclose(fout);
-            }
-            else
-                fprintf(stderr, "%s - can't open \"%s\" for writing\n", prog, outfile);
-
-            FreeStream(in);
-        }
-        else
-            fprintf(stderr, "%s - can't open \"%s\" for reading\n", prog, infile);
-
-        --argc;
-        ++argv;
-        
-        if (argc <= 1)
-            break;
-    }
-
-    return 0;
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/ac70cb0e/DocFormats/3rdparty/external/w3c-tidy-html5/console/tidy.c
----------------------------------------------------------------------
diff --git a/DocFormats/3rdparty/external/w3c-tidy-html5/console/tidy.c b/DocFormats/3rdparty/external/w3c-tidy-html5/console/tidy.c
deleted file mode 100644
index b1376a8..0000000
--- a/DocFormats/3rdparty/external/w3c-tidy-html5/console/tidy.c
+++ /dev/null
@@ -1,1346 +0,0 @@
-/*
-  tidy.c - HTML TidyLib command line driver
-
-  Copyright (c) 1998-2008 World Wide Web Consortium
-  (Massachusetts Institute of Technology, European Research 
-  Consortium for Informatics and Mathematics, Keio University).
-  All Rights Reserved.
-
-*/
-
-#include "tidy.h"
-
-static FILE* errout = NULL;  /* set to stderr */
-/* static FILE* txtout = NULL; */  /* set to stdout */
-
-static Bool samefile( ctmbstr filename1, ctmbstr filename2 )
-{
-#if FILENAMES_CASE_SENSITIVE
-    return ( strcmp( filename1, filename2 ) == 0 );
-#else
-    return ( strcasecmp( filename1, filename2 ) == 0 );
-#endif
-}
-
-static void outOfMemory(void)
-{
-    fprintf(stderr,"Out of memory. Bailing out.");
-    exit(1);
-}
-
-static const char *cutToWhiteSpace(const char *s, uint offset, char *sbuf)
-{
-    if (!s)
-    {
-        sbuf[0] = '\0';
-        return NULL;
-    }
-    else if (strlen(s) <= offset)
-    {
-        strcpy(sbuf,s);
-        sbuf[offset] = '\0';
-        return NULL;
-    }
-    else
-    {
-        uint j, l, n;
-        j = offset;
-        while(j && s[j] != ' ')
-            --j;
-        l = j;
-        n = j+1;
-        /* no white space */
-        if (j==0)
-        {
-            l = offset;
-            n = offset;
-        }
-        strncpy(sbuf,s,l);
-        sbuf[l] = '\0';
-        return s+n;
-    }
-}
-
-static void print2Columns( const char* fmt, uint l1, uint l2,
-                           const char *c1, const char *c2 )
-{
-    const char *pc1=c1, *pc2=c2;
-    char *c1buf = (char *)malloc(l1+1);
-    char *c2buf = (char *)malloc(l2+1);
-    if (!c1buf) outOfMemory();
-    if (!c2buf) outOfMemory();
-
-    do
-    {
-        pc1 = cutToWhiteSpace(pc1, l1, c1buf);
-        pc2 = cutToWhiteSpace(pc2, l2, c2buf);
-        printf(fmt,
-               c1buf[0]!='\0'?c1buf:"",
-               c2buf[0]!='\0'?c2buf:"");
-    } while (pc1 || pc2);
-    free(c1buf);
-    free(c2buf);
-}
-
-static void print3Columns( const char* fmt, uint l1, uint l2, uint l3,
-                           const char *c1, const char *c2, const char *c3 )
-{
-    const char *pc1=c1, *pc2=c2, *pc3=c3;
-    char *c1buf = (char *)malloc(l1+1);
-    char *c2buf = (char *)malloc(l2+1);
-    char *c3buf = (char *)malloc(l3+1);
-    if (!c1buf) outOfMemory();
-    if (!c2buf) outOfMemory();
-    if (!c3buf) outOfMemory();
-
-    do
-    {
-        pc1 = cutToWhiteSpace(pc1, l1, c1buf);
-        pc2 = cutToWhiteSpace(pc2, l2, c2buf);
-        pc3 = cutToWhiteSpace(pc3, l3, c3buf);
-        printf(fmt,
-               c1buf[0]!='\0'?c1buf:"",
-               c2buf[0]!='\0'?c2buf:"",
-               c3buf[0]!='\0'?c3buf:"");
-    } while (pc1 || pc2 || pc3);
-    free(c1buf);
-    free(c2buf);
-    free(c3buf);
-}
-
-static const char helpfmt[] = " %-19.19s %-58.58s\n";
-static const char helpul[]
-        = "-----------------------------------------------------------------";
-static const char fmt[] = "%-27.27s %-9.9s  %-40.40s\n";
-static const char valfmt[] = "%-27.27s %-9.9s %-1.1s%-39.39s\n";
-static const char ul[]
-        = "=================================================================";
-
-typedef enum
-{
-  CmdOptFileManip,
-  CmdOptCatFIRST = CmdOptFileManip,
-  CmdOptProcDir,
-  CmdOptCharEnc,
-  CmdOptMisc,
-  CmdOptCatLAST
-} CmdOptCategory;
-
-static const struct {
-    ctmbstr mnemonic;
-    ctmbstr name;
-} cmdopt_catname[] = {
-    { "file-manip", "File manipulation" },
-    { "process-directives", "Processing directives" },
-    { "char-encoding", "Character encodings" },
-    { "misc", "Miscellaneous" }
-};
-
-typedef struct {
-    ctmbstr name1;      /**< Name */
-    ctmbstr desc;       /**< Description */
-    ctmbstr eqconfig;   /**< Equivalent configuration option */
-    CmdOptCategory cat; /**< Category */
-    ctmbstr name2;      /**< Name */
-    ctmbstr name3;      /**< Name */
-} CmdOptDesc;
-
-static const CmdOptDesc cmdopt_defs[] =  {
-    { "-output <file>",
-      "write output to the specified <file>",
-      "output-file: <file>", CmdOptFileManip, "-o <file>" },
-    { "-config <file>",
-      "set configuration options from the specified <file>",
-      NULL, CmdOptFileManip },
-    { "-file <file>",
-      "write errors and warnings to the specified <file>",
-      "error-file: <file>", CmdOptFileManip, "-f <file>" },
-    { "-modify",
-      "modify the original input files",
-      "write-back: yes", CmdOptFileManip, "-m" },
-    { "-indent",
-      "indent element content",
-      "indent: auto", CmdOptProcDir, "-i" },
-    { "-wrap <column>",
-      "wrap text at the specified <column>"
-      ". 0 is assumed if <column> is missing. "
-      "When this option is omitted, the default of the configuration option "
-      "\"wrap\" applies.",
-      "wrap: <column>", CmdOptProcDir, "-w <column>" },
-    { "-upper",
-      "force tags to upper case",
-      "uppercase-tags: yes", CmdOptProcDir, "-u" },
-    { "-clean",
-      "replace FONT, NOBR and CENTER tags by CSS",
-      "clean: yes", CmdOptProcDir, "-c" },
-    { "-bare",
-      "strip out smart quotes and em dashes, etc.",
-      "bare: yes", CmdOptProcDir, "-b" },
-    { "-gdoc",
-      "produce clean version of html exported by google docs",
-      "gdoc: yes", CmdOptProcDir, "-g" },
-    { "-numeric",
-      "output numeric rather than named entities",
-      "numeric-entities: yes", CmdOptProcDir, "-n" },
-    { "-errors",
-      "show only errors and warnings",
-      "markup: no", CmdOptProcDir, "-e" },
-    { "-quiet",
-      "suppress nonessential output",
-      "quiet: yes", CmdOptProcDir, "-q" },
-    { "-omit",
-      "omit optional start tags and end tags",
-      "omit-optional-tags: yes", CmdOptProcDir },
-    { "-xml",
-      "specify the input is well formed XML",
-      "input-xml: yes", CmdOptProcDir },
-    { "-asxml",
-      "convert HTML to well formed XHTML",
-      "output-xhtml: yes", CmdOptProcDir, "-asxhtml" },
-    { "-ashtml",
-      "force XHTML to well formed HTML",
-      "output-html: yes", CmdOptProcDir },
-#if SUPPORT_ACCESSIBILITY_CHECKS
-    { "-access <level>",
-      "do additional accessibility checks (<level> = 0, 1, 2, 3)"
-      ". 0 is assumed if <level> is missing.",
-      "accessibility-check: <level>", CmdOptProcDir },
-#endif
-    { "-raw",
-      "output values above 127 without conversion to entities",
-      NULL, CmdOptCharEnc },
-    { "-ascii",
-      "use ISO-8859-1 for input, US-ASCII for output",
-      NULL, CmdOptCharEnc },
-    { "-latin0",
-      "use ISO-8859-15 for input, US-ASCII for output",
-      NULL, CmdOptCharEnc },
-    { "-latin1",
-      "use ISO-8859-1 for both input and output",
-      NULL, CmdOptCharEnc },
-#ifndef NO_NATIVE_ISO2022_SUPPORT
-    { "-iso2022",
-      "use ISO-2022 for both input and output",
-      NULL, CmdOptCharEnc },
-#endif
-    { "-utf8",
-      "use UTF-8 for both input and output",
-      NULL, CmdOptCharEnc },
-    { "-mac",
-      "use MacRoman for input, US-ASCII for output",
-      NULL, CmdOptCharEnc },
-    { "-win1252",
-      "use Windows-1252 for input, US-ASCII for output",
-      NULL, CmdOptCharEnc },
-    { "-ibm858",
-      "use IBM-858 (CP850+Euro) for input, US-ASCII for output",
-      NULL, CmdOptCharEnc },
-#if SUPPORT_UTF16_ENCODINGS
-    { "-utf16le",
-      "use UTF-16LE for both input and output",
-      NULL, CmdOptCharEnc },
-    { "-utf16be",
-      "use UTF-16BE for both input and output",
-      NULL, CmdOptCharEnc },
-    { "-utf16",
-      "use UTF-16 for both input and output",
-      NULL, CmdOptCharEnc },
-#endif
-#if SUPPORT_ASIAN_ENCODINGS /* #431953 - RJ */
-    { "-big5",
-      "use Big5 for both input and output",
-      NULL, CmdOptCharEnc },
-    { "-shiftjis",
-      "use Shift_JIS for both input and output",
-      NULL, CmdOptCharEnc },
-    { "-language <lang>",
-      "set the two-letter language code <lang> (for future use)",
-      "language: <lang>", CmdOptCharEnc },
-#endif
-    { "-version",
-      "show the version of Tidy",
-      NULL, CmdOptMisc, "-v" },
-    { "-help",
-      "list the command line options",
-      NULL, CmdOptMisc, "-h", "-?" },
-    { "-xml-help",
-      "list the command line options in XML format",
-      NULL, CmdOptMisc },
-    { "-help-config",
-      "list all configuration options",
-      NULL, CmdOptMisc },
-    { "-xml-config",
-      "list all configuration options in XML format",
-      NULL, CmdOptMisc },
-    { "-show-config",
-      "list the current configuration settings",
-      NULL, CmdOptMisc },
-    { NULL, NULL, NULL, CmdOptMisc }
-};
-
-static tmbstr get_option_names( const CmdOptDesc* pos )
-{
-    tmbstr name;
-    uint len = strlen(pos->name1);
-    if (pos->name2)
-        len += 2+strlen(pos->name2);
-    if (pos->name3)
-        len += 2+strlen(pos->name3);
-
-    name = (tmbstr)malloc(len+1);
-    if (!name) outOfMemory();
-    strcpy(name, pos->name1);
-    if (pos->name2)
-    {
-        strcat(name, ", ");
-        strcat(name, pos->name2);
-    }
-    if (pos->name3)
-    {
-        strcat(name, ", ");
-        strcat(name, pos->name3);
-    }
-    return name;
-}
-
-static tmbstr get_escaped_name( ctmbstr name )
-{
-    tmbstr escpName;
-    char aux[2];
-    uint len = 0;
-    ctmbstr c;
-    for(c=name; *c!='\0'; ++c)
-        switch(*c)
-        {
-        case '<':
-        case '>':
-            len += 4;
-            break;
-        case '"':
-            len += 6;
-            break;
-        default:
-            len += 1;
-            break;
-        }
-
-    escpName = (tmbstr)malloc(len+1);
-    if (!escpName) outOfMemory();
-    escpName[0] = '\0';
-
-    aux[1] = '\0';
-    for(c=name; *c!='\0'; ++c)
-        switch(*c)
-        {
-        case '<':
-            strcat(escpName, "&lt;");
-            break;
-        case '>':
-            strcat(escpName, "&gt;");
-            break;
-        case '"':
-            strcat(escpName, "&quot;");
-            break;
-        default:
-            aux[0] = *c;
-            strcat(escpName, aux);
-            break;
-        }
-
-    return escpName;
-}
-
-static void print_help_option( void )
-{
-    CmdOptCategory cat = CmdOptCatFIRST;
-    const CmdOptDesc* pos = cmdopt_defs;
-
-    for( cat=CmdOptCatFIRST; cat!=CmdOptCatLAST; ++cat)
-    {
-        size_t len =  strlen(cmdopt_catname[cat].name);
-        printf("%s\n", cmdopt_catname[cat].name );
-        printf("%*.*s\n", (int)len, (int)len, helpul );
-        for( pos=cmdopt_defs; pos->name1; ++pos)
-        {
-            tmbstr name;
-            if (pos->cat != cat)
-                continue;
-            name = get_option_names( pos );
-            print2Columns( helpfmt, 19, 58, name, pos->desc );
-            free(name);
-        }
-        printf("\n");
-    }
-}
-
-static void print_xml_help_option_element( ctmbstr element, ctmbstr name )
-{
-    tmbstr escpName;
-    if (!name)
-        return;
-    printf("  <%s>%s</%s>\n", element, escpName = get_escaped_name(name),
-           element);
-    free(escpName);
-}
-
-static void print_xml_help_option( void )
-{
-    const CmdOptDesc* pos = cmdopt_defs;
-
-    for( pos=cmdopt_defs; pos->name1; ++pos)
-    {
-        printf(" <option class=\"%s\">\n", cmdopt_catname[pos->cat].mnemonic );
-        print_xml_help_option_element("name", pos->name1);
-        print_xml_help_option_element("name", pos->name2);
-        print_xml_help_option_element("name", pos->name3);
-        print_xml_help_option_element("description", pos->desc);
-        if (pos->eqconfig)
-            print_xml_help_option_element("eqconfig", pos->eqconfig);
-        else
-            printf("  <eqconfig />\n");
-        printf(" </option>\n");
-    }
-}
-
-static void xml_help( void )
-{
-    printf( "<?xml version=\"1.0\"?>\n"
-            "<cmdline version=\"%s\">\n", tidyReleaseDate());
-    print_xml_help_option();
-    printf( "</cmdline>\n" );
-}
-
-static void help( ctmbstr prog )
-{
-    printf( "%s [option...] [file...] [option...] [file...]\n", prog );
-    printf( "Utility to clean up and pretty print HTML/XHTML/XML\n");
-    printf( "\n");
-
-    printf( "This is an HTML5-aware experimental fork of HTML Tidy.\n");
-    printf( "%s\n", tidyReleaseDate() );
-    printf( "\n");
-
-#ifdef PLATFORM_NAME
-    printf( "Options for HTML Tidy for %s:\n", PLATFORM_NAME );
-#else
-    printf( "Options for HTML Tidy:\n");
-#endif
-    printf( "\n");
-
-    print_help_option();
-
-    printf( "Use --optionX valueX for any configuration option \"optionX\" with argument\n"
-            "\"valueX\". For a list of the configuration options, use \"-help-config\" or refer\n"
-            "to the man page.\n\n");
-
-    printf( "Input/Output default to stdin/stdout respectively.\n");
-    printf( "\n");
-    printf( "Single letter options apart from -f may be combined\n");
-    printf( "as in:  tidy -f errs.txt -imu foo.html\n");
-    printf( "\n");
-    printf( "For more information on this HTML5-aware experimental fork of Tidy,\n" );
-    printf( "see http://w3c.github.com/tidy-html5/\n" );
-    printf( "\n");
-    printf( "For more information on HTML, see the following:\n" );
-    printf( "\n");
-    printf( "  HTML: Edition for Web Authors (the latest HTML specification)\n");
-    printf( "  http://dev.w3.org/html5/spec-author-view\n" );
-    printf( "\n");
-    printf( "  HTML: The Markup Language (an HTML language reference)\n" );
-    printf( "  http://dev.w3.org/html5/markup/\n" );
-    printf( "\n");
-    printf( "File bug reports at https://github.com/w3c/tidy-html5/issues/\n" );
-    printf( "or send questions and comments to html-tidy@w3.org\n" );
-    printf( "\n");
-    printf( "Validate your HTML documents using the W3C Nu Markup Validator:\n" );
-    printf( "\n");
-    printf( "  http://validator.w3.org/nu/" );
-    printf( "\n");
-}
-
-static Bool isAutoBool( TidyOption topt )
-{
-    TidyIterator pos;
-    ctmbstr def;
-
-    if ( tidyOptGetType( topt ) != TidyInteger)
-        return no;
-
-    pos = tidyOptGetPickList( topt );
-    while ( pos )
-    {
-        def = tidyOptGetNextPick( topt, &pos );
-        if (0==strcmp(def,"yes"))
-           return yes;
-    }
-    return no;
-}
-
-static
-ctmbstr ConfigCategoryName( TidyConfigCategory id )
-{
-    switch( id )
-    {
-    case TidyMarkup:
-        return "markup";
-    case TidyDiagnostics:
-        return "diagnostics";
-    case TidyPrettyPrint:
-        return "print";
-    case TidyEncoding:
-        return "encoding";
-    case TidyMiscellaneous:
-        return "misc";
-    }
-    fprintf(stderr, "Fatal error: impossible value for id='%d'.\n", (int)id);
-    assert(0);
-    abort();
-}
-
-/* Description of an option */
-typedef struct {
-    ctmbstr name;  /**< Name */
-    ctmbstr cat;   /**< Category */
-    ctmbstr type;  /**< "String, ... */
-    ctmbstr vals;  /**< Potential values. If NULL, use an external function */
-    ctmbstr def;   /**< default */
-    tmbchar tempdefs[80]; /**< storage for default such as integer */
-    Bool haveVals; /**< if yes, vals is valid */
-} OptionDesc;
-
-typedef void (*OptionFunc)( TidyDoc, TidyOption, OptionDesc * );
-
-
-/* Create description "d" related to "opt" */
-static
-void GetOption( TidyDoc tdoc, TidyOption topt, OptionDesc *d )
-{
-    TidyOptionId optId = tidyOptGetId( topt );
-    TidyOptionType optTyp = tidyOptGetType( topt );
-
-    d->name = tidyOptGetName( topt );
-    d->cat = ConfigCategoryName( tidyOptGetCategory( topt ) );
-    d->vals = NULL;
-    d->def = NULL;
-    d->haveVals = yes;
-
-    /* Handle special cases first.
-     */
-    switch ( optId )
-    {
-    case TidyDuplicateAttrs:
-    case TidySortAttributes:
-    case TidyNewline:
-    case TidyAccessibilityCheckLevel:
-        d->type = "enum";
-        d->vals = NULL;
-        d->def =
-            optId==TidyNewline ?
-            "<em>Platform dependent</em>"
-            :tidyOptGetCurrPick( tdoc, optId );
-        break;
-
-    case TidyDoctype:
-        d->type = "DocType";
-        d->vals = NULL;
-        {
-            ctmbstr sdef = NULL;
-            sdef = tidyOptGetCurrPick( tdoc, TidyDoctypeMode );
-            if ( !sdef || *sdef == '*' )
-                sdef = tidyOptGetValue( tdoc, TidyDoctype );
-            d->def = sdef;
-        }
-        break;
-
-    case TidyInlineTags:
-    case TidyBlockTags:
-    case TidyEmptyTags:
-    case TidyPreTags:
-        d->type = "Tag names";
-        d->vals = "tagX, tagY, ...";
-        d->def = NULL;
-        break;
-
-    case TidyCharEncoding:
-    case TidyInCharEncoding:
-    case TidyOutCharEncoding:
-        d->type = "Encoding";
-        d->def = tidyOptGetEncName( tdoc, optId );
-        if (!d->def)
-            d->def = "?";
-        d->vals = NULL;
-        break;
-
-        /* General case will handle remaining */
-    default:
-        switch ( optTyp )
-        {
-        case TidyBoolean:
-            d->type = "Boolean";
-            d->vals = "y/n, yes/no, t/f, true/false, 1/0";
-            d->def = tidyOptGetCurrPick( tdoc, optId );
-            break;
-
-        case TidyInteger:
-            if (isAutoBool(topt))
-            {
-                d->type = "AutoBool";
-                d->vals = "auto, y/n, yes/no, t/f, true/false, 1/0";
-                d->def = tidyOptGetCurrPick( tdoc, optId );
-            }
-            else
-            {
-                uint idef;
-                d->type = "Integer";
-                if ( optId == TidyWrapLen )
-                    d->vals = "0 (no wrapping), 1, 2, ...";
-                else
-                    d->vals = "0, 1, 2, ...";
-
-                idef = tidyOptGetInt( tdoc, optId );
-                sprintf(d->tempdefs, "%u", idef);
-                d->def = d->tempdefs;
-            }
-            break;
-
-        case TidyString:
-            d->type = "String";
-            d->vals = NULL;
-            d->haveVals = no;
-            d->def = tidyOptGetValue( tdoc, optId );
-            break;
-        }
-    }
-}
-
-/* Array holding all options. Contains a trailing sentinel. */
-typedef struct {
-    TidyOption topt[N_TIDY_OPTIONS];
-} AllOption_t;
-
-static
-int cmpOpt(const void* e1_, const void *e2_)
-{
-    const TidyOption* e1 = (const TidyOption*)e1_;
-    const TidyOption* e2 = (const TidyOption*)e2_;
-    return strcmp(tidyOptGetName(*e1), tidyOptGetName(*e2));
-}
-
-static
-void getSortedOption( TidyDoc tdoc, AllOption_t *tOption )
-{
-    TidyIterator pos = tidyGetOptionList( tdoc );
-    uint i = 0;
-
-    while ( pos )
-    {
-        TidyOption topt = tidyGetNextOption( tdoc, &pos );
-        tOption->topt[i] = topt;
-        ++i;
-    }
-    tOption->topt[i] = NULL; /* sentinel */
-
-    qsort(tOption->topt,
-          /* Do not sort the sentinel: hence `-1' */
-          sizeof(tOption->topt)/sizeof(tOption->topt[0])-1,
-          sizeof(tOption->topt[0]),
-          cmpOpt);
-}
-
-static void ForEachSortedOption( TidyDoc tdoc, OptionFunc OptionPrint )
-{
-    AllOption_t tOption;
-    const TidyOption *topt;
-
-    getSortedOption( tdoc, &tOption );
-    for( topt = tOption.topt; *topt; ++topt)
-    {
-        OptionDesc d;
-
-        GetOption( tdoc, *topt, &d );
-        (*OptionPrint)( tdoc, *topt, &d );
-    }
-}
-
-static void ForEachOption( TidyDoc tdoc, OptionFunc OptionPrint )
-{
-    TidyIterator pos = tidyGetOptionList( tdoc );
-
-    while ( pos )
-    {
-        TidyOption topt = tidyGetNextOption( tdoc, &pos );
-        OptionDesc d;
-
-        GetOption( tdoc, topt, &d );
-        (*OptionPrint)( tdoc, topt, &d );
-    }
-}
-
-static
-void PrintAllowedValuesFromPick( TidyOption topt )
-{
-    TidyIterator pos = tidyOptGetPickList( topt );
-    Bool first = yes;
-    ctmbstr def;
-    while ( pos )
-    {
-        if (first)
-            first = no;
-        else
-            printf(", ");
-        def = tidyOptGetNextPick( topt, &pos );
-        printf("%s", def);
-    }
-}
-
-static
-void PrintAllowedValues( TidyOption topt, const OptionDesc *d )
-{
-    if (d->vals)
-        printf( "%s", d->vals );
-    else
-        PrintAllowedValuesFromPick( topt );
-}
-
-static
-void printXMLDescription( TidyDoc tdoc, TidyOption topt )
-{
-    ctmbstr doc = tidyOptGetDoc( tdoc, topt );
-
-    if (doc)
-        printf("  <description>%s</description>\n", doc);
-    else
-    {
-        printf("  <description />\n");
-        fprintf(stderr, "Warning: option `%s' is not documented.\n",
-                tidyOptGetName( topt ));
-    }
-}
-
-static
-void printXMLCrossRef( TidyDoc tdoc, TidyOption topt )
-{
-    TidyOption optLinked;
-    TidyIterator pos = tidyOptGetDocLinksList(tdoc, topt);
-    while( pos )
-    {
-        optLinked = tidyOptGetNextDocLinks(tdoc, &pos );
-        printf("  <seealso>%s</seealso>\n",tidyOptGetName(optLinked));
-    }
-}
-
-static
-void printXMLOption( TidyDoc tdoc, TidyOption topt, OptionDesc *d )
-{
-    if ( tidyOptIsReadOnly(topt) )
-        return;
-
-    printf( " <option class=\"%s\">\n", d->cat );
-    printf  ("  <name>%s</name>\n",d->name);
-    printf  ("  <type>%s</type>\n",d->type);
-    if (d->def)
-        printf("  <default>%s</default>\n",d->def);
-    else
-        printf("  <default />\n");
-    if (d->haveVals)
-    {
-        printf("  <example>");
-        PrintAllowedValues( topt, d );
-        printf("</example>\n");
-    }
-    else
-    {
-        printf("  <example />\n");
-    }
-    printXMLDescription( tdoc, topt );
-    printXMLCrossRef( tdoc, topt );
-    printf( " </option>\n" );
-}
-
-static void XMLoptionhelp( TidyDoc tdoc )
-{
-    printf( "<?xml version=\"1.0\"?>\n"
-            "<config version=\"%s\">\n", tidyReleaseDate());
-    ForEachOption( tdoc, printXMLOption );
-    printf( "</config>\n" );
-}
-
-static
-tmbstr GetAllowedValuesFromPick( TidyOption topt )
-{
-    TidyIterator pos;
-    Bool first;
-    ctmbstr def;
-    uint len = 0;
-    tmbstr val;
-
-    pos = tidyOptGetPickList( topt );
-    first = yes;
-    while ( pos )
-    {
-        if (first)
-            first = no;
-        else
-            len += 2;
-        def = tidyOptGetNextPick( topt, &pos );
-        len += strlen(def);
-    }
-    val = (tmbstr)malloc(len+1);
-    if (!val) outOfMemory();
-    val[0] = '\0';
-    pos = tidyOptGetPickList( topt );
-    first = yes;
-    while ( pos )
-    {
-        if (first)
-            first = no;
-        else
-            strcat(val, ", ");
-        def = tidyOptGetNextPick( topt, &pos );
-        strcat(val, def);
-    }
-    return val;
-}
-
-static
-tmbstr GetAllowedValues( TidyOption topt, const OptionDesc *d )
-{
-    if (d->vals)
-    {
-        tmbstr val = (tmbstr)malloc(1+strlen(d->vals));
-        if (!val) outOfMemory();
-        strcpy(val, d->vals);
-        return val;
-    }
-    else
-        return GetAllowedValuesFromPick( topt );
-}
-
-static
-void printOption( TidyDoc ARG_UNUSED(tdoc), TidyOption topt,
-                  OptionDesc *d )
-{
-    if ( tidyOptIsReadOnly(topt) )
-        return;
-
-    if ( *d->name || *d->type )
-    {
-        ctmbstr pval = d->vals;
-        tmbstr val = NULL;
-        if (!d->haveVals)
-        {
-            pval = "-";
-        }
-        else if (pval == NULL)
-        {
-            val = GetAllowedValues( topt, d);
-            pval = val;
-        }
-        print3Columns( fmt, 27, 9, 40, d->name, d->type, pval );
-        if (val)
-            free(val);
-    }
-}
-
-static void optionhelp( TidyDoc tdoc )
-{
-    printf( "\nHTML Tidy Configuration Settings\n\n" );
-    printf( "Within a file, use the form:\n\n" );
-    printf( "wrap: 72\n" );
-    printf( "indent: no\n\n" );
-    printf( "When specified on the command line, use the form:\n\n" );
-    printf( "--wrap 72 --indent no\n\n");
-
-    printf( fmt, "Name", "Type", "Allowable values" );
-    printf( fmt, ul, ul, ul );
-
-    ForEachSortedOption( tdoc, printOption );
-}
-
-static
-void printOptionValues( TidyDoc ARG_UNUSED(tdoc), TidyOption topt,
-                        OptionDesc *d )
-{
-    TidyOptionId optId = tidyOptGetId( topt );
-    ctmbstr ro = tidyOptIsReadOnly( topt ) ? "*" : "" ;
-
-    switch ( optId )
-    {
-    case TidyInlineTags:
-    case TidyBlockTags:
-    case TidyEmptyTags:
-    case TidyPreTags:
-        {
-            TidyIterator pos = tidyOptGetDeclTagList( tdoc );
-            while ( pos )
-            {
-                d->def = tidyOptGetNextDeclTag(tdoc, optId, &pos);
-                if ( pos )
-                {
-                    if ( *d->name )
-                        printf( valfmt, d->name, d->type, ro, d->def );
-                    else
-                        printf( fmt, d->name, d->type, d->def );
-                    d->name = "";
-                    d->type = "";
-                }
-            }
-        }
-        break;
-    case TidyNewline:
-        d->def = tidyOptGetCurrPick( tdoc, optId );
-        break;
-    default:
-        break;
-    }
-
-    /* fix for http://tidy.sf.net/bug/873921 */
-    if ( *d->name || *d->type || (d->def && *d->def) )
-    {
-        if ( ! d->def )
-            d->def = "";
-        if ( *d->name )
-            printf( valfmt, d->name, d->type, ro, d->def );
-        else
-            printf( fmt, d->name, d->type, d->def );
-    }
-}
-
-static void optionvalues( TidyDoc tdoc )
-{
-    printf( "\nConfiguration File Settings:\n\n" );
-    printf( fmt, "Name", "Type", "Current Value" );
-    printf( fmt, ul, ul, ul );
-
-    ForEachSortedOption( tdoc, printOptionValues );
-
-    printf( "\n\nValues marked with an *asterisk are calculated \n"
-            "internally by HTML Tidy\n\n" );
-}
-
-static void version( void )
-{
-#ifdef PLATFORM_NAME
-    printf( "HTML Tidy for HTML5 (experimental) for %s %s\n",
-             PLATFORM_NAME, tidyReleaseDate() );
-#else
-    printf( "HTML Tidy for HTML5 (experimental) %s\n", tidyReleaseDate() );
-#endif
-}
-
-static void unknownOption( uint c )
-{
-    fprintf( errout, "HTML Tidy: unknown option: %c\n", (char)c );
-}
-
-int main( int argc, char** argv )
-{
-    ctmbstr prog = argv[0];
-    ctmbstr cfgfil = NULL, errfil = NULL, htmlfil = NULL;
-    TidyDoc tdoc = tidyCreate();
-    int status = 0;
-
-    uint contentErrors = 0;
-    uint contentWarnings = 0;
-    uint accessWarnings = 0;
-
-    errout = stderr;  /* initialize to stderr */
-    status = 0;
-    
-#ifdef TIDY_CONFIG_FILE
-    if ( tidyFileExists( tdoc, TIDY_CONFIG_FILE) )
-    {
-        status = tidyLoadConfig( tdoc, TIDY_CONFIG_FILE );
-        if ( status != 0 )
-            fprintf(errout, "Loading config file \"%s\" failed, err = %d\n", TIDY_CONFIG_FILE, status);
-    }
-#endif /* TIDY_CONFIG_FILE */
-
-    /* look for env var "HTML_TIDY" */
-    /* then for ~/.tidyrc (on platforms defining $HOME) */
-
-    if ( (cfgfil = getenv("HTML_TIDY")) != NULL )
-    {
-        status = tidyLoadConfig( tdoc, cfgfil );
-        if ( status != 0 )
-            fprintf(errout, "Loading config file \"%s\" failed, err = %d\n", cfgfil, status);
-    }
-#ifdef TIDY_USER_CONFIG_FILE
-    else if ( tidyFileExists( tdoc, TIDY_USER_CONFIG_FILE) )
-    {
-        status = tidyLoadConfig( tdoc, TIDY_USER_CONFIG_FILE );
-        if ( status != 0 )
-            fprintf(errout, "Loading config file \"%s\" failed, err = %d\n", TIDY_USER_CONFIG_FILE, status);
-    }
-#endif /* TIDY_USER_CONFIG_FILE */
-
-    /* read command line */
-    while ( argc > 0 )
-    {
-        if (argc > 1 && argv[1][0] == '-')
-        {
-            /* support -foo and --foo */
-            ctmbstr arg = argv[1] + 1;
-
-            if ( strcasecmp(arg, "xml") == 0)
-                tidyOptSetBool( tdoc, TidyXmlTags, yes );
-
-            else if ( strcasecmp(arg,   "asxml") == 0 ||
-                      strcasecmp(arg, "asxhtml") == 0 )
-            {
-                tidyOptSetBool( tdoc, TidyXhtmlOut, yes );
-            }
-            else if ( strcasecmp(arg,   "ashtml") == 0 )
-                tidyOptSetBool( tdoc, TidyHtmlOut, yes );
-
-            else if ( strcasecmp(arg, "indent") == 0 )
-            {
-                tidyOptSetInt( tdoc, TidyIndentContent, TidyAutoState );
-                if ( tidyOptGetInt(tdoc, TidyIndentSpaces) == 0 )
-                    tidyOptResetToDefault( tdoc, TidyIndentSpaces );
-            }
-            else if ( strcasecmp(arg, "omit") == 0 )
-                tidyOptSetBool( tdoc, TidyOmitOptionalTags, yes );
-
-            else if ( strcasecmp(arg, "upper") == 0 )
-                tidyOptSetBool( tdoc, TidyUpperCaseTags, yes );
-
-            else if ( strcasecmp(arg, "clean") == 0 )
-                tidyOptSetBool( tdoc, TidyMakeClean, yes );
-
-            else if ( strcasecmp(arg, "gdoc") == 0 )
-                tidyOptSetBool( tdoc, TidyGDocClean, yes );
-
-            else if ( strcasecmp(arg, "bare") == 0 )
-                tidyOptSetBool( tdoc, TidyMakeBare, yes );
-
-            else if ( strcasecmp(arg, "raw") == 0      ||
-                      strcasecmp(arg, "ascii") == 0    ||
-                      strcasecmp(arg, "latin0") == 0   ||
-                      strcasecmp(arg, "latin1") == 0   ||
-                      strcasecmp(arg, "utf8") == 0     ||
-#ifndef NO_NATIVE_ISO2022_SUPPORT
-                      strcasecmp(arg, "iso2022") == 0  ||
-#endif
-#if SUPPORT_UTF16_ENCODINGS
-                      strcasecmp(arg, "utf16le") == 0  ||
-                      strcasecmp(arg, "utf16be") == 0  ||
-                      strcasecmp(arg, "utf16") == 0    ||
-#endif
-#if SUPPORT_ASIAN_ENCODINGS
-                      strcasecmp(arg, "shiftjis") == 0 ||
-                      strcasecmp(arg, "big5") == 0     ||
-#endif
-                      strcasecmp(arg, "mac") == 0      ||
-                      strcasecmp(arg, "win1252") == 0  ||
-                      strcasecmp(arg, "ibm858") == 0 )
-            {
-                tidySetCharEncoding( tdoc, arg );
-            }
-            else if ( strcasecmp(arg, "numeric") == 0 )
-                tidyOptSetBool( tdoc, TidyNumEntities, yes );
-
-            else if ( strcasecmp(arg, "modify") == 0 ||
-                      strcasecmp(arg, "change") == 0 ||  /* obsolete */
-                      strcasecmp(arg, "update") == 0 )   /* obsolete */
-            {
-                tidyOptSetBool( tdoc, TidyWriteBack, yes );
-            }
-            else if ( strcasecmp(arg, "errors") == 0 )
-                tidyOptSetBool( tdoc, TidyShowMarkup, no );
-
-            else if ( strcasecmp(arg, "quiet") == 0 )
-                tidyOptSetBool( tdoc, TidyQuiet, yes );
-
-            else if ( strcasecmp(arg, "help") == 0 ||
-                      strcasecmp(arg,    "h") == 0 || *arg == '?' )
-            {
-                help( prog );
-                tidyRelease( tdoc );
-                return 0; /* success */
-            }
-            else if ( strcasecmp(arg, "xml-help") == 0)
-            {
-                xml_help( );
-                tidyRelease( tdoc );
-                return 0; /* success */
-            }
-            else if ( strcasecmp(arg, "help-config") == 0 )
-            {
-                optionhelp( tdoc );
-                tidyRelease( tdoc );
-                return 0; /* success */
-            }
-            else if ( strcasecmp(arg, "xml-config") == 0 )
-            {
-                XMLoptionhelp( tdoc );
-                tidyRelease( tdoc );
-                return 0; /* success */
-            }
-            else if ( strcasecmp(arg, "show-config") == 0 )
-            {
-                optionvalues( tdoc );
-                tidyRelease( tdoc );
-                return 0; /* success */
-            }
-            else if ( strcasecmp(arg, "config") == 0 )
-            {
-                if ( argc >= 3 )
-                {
-                    ctmbstr post;
-
-                    tidyLoadConfig( tdoc, argv[2] );
-
-                    /* Set new error output stream if setting changed */
-                    post = tidyOptGetValue( tdoc, TidyErrFile );
-                    if ( post && (!errfil || !samefile(errfil, post)) )
-                    {
-                        errfil = post;
-                        errout = tidySetErrorFile( tdoc, post );
-                    }
-
-                    --argc;
-                    ++argv;
-                }
-            }
-
-#if SUPPORT_ASIAN_ENCODINGS
-            else if ( strcasecmp(arg, "language") == 0 ||
-                      strcasecmp(arg,     "lang") == 0 )
-            {
-                if ( argc >= 3 )
-                {
-                    tidyOptSetValue( tdoc, TidyLanguage, argv[2] );
-                    --argc;
-                    ++argv;
-                }
-            }
-#endif
-
-            else if ( strcasecmp(arg, "output") == 0 ||
-                      strcasecmp(arg, "-output-file") == 0 ||
-                      strcasecmp(arg, "o") == 0 )
-            {
-                if ( argc >= 3 )
-                {
-                    tidyOptSetValue( tdoc, TidyOutFile, argv[2] );
-                    --argc;
-                    ++argv;
-                }
-            }
-            else if ( strcasecmp(arg,  "file") == 0 ||
-                      strcasecmp(arg, "-file") == 0 ||
-                      strcasecmp(arg,     "f") == 0 )
-            {
-                if ( argc >= 3 )
-                {
-                    errfil = argv[2];
-                    errout = tidySetErrorFile( tdoc, errfil );
-                    --argc;
-                    ++argv;
-                }
-            }
-            else if ( strcasecmp(arg,  "wrap") == 0 ||
-                      strcasecmp(arg, "-wrap") == 0 ||
-                      strcasecmp(arg,     "w") == 0 )
-            {
-                if ( argc >= 3 )
-                {
-                    uint wraplen = 0;
-                    int nfields = sscanf( argv[2], "%u", &wraplen );
-                    tidyOptSetInt( tdoc, TidyWrapLen, wraplen );
-                    if (nfields > 0)
-                    {
-                        --argc;
-                        ++argv;
-                    }
-                }
-            }
-            else if ( strcasecmp(arg,  "version") == 0 ||
-                      strcasecmp(arg, "-version") == 0 ||
-                      strcasecmp(arg,        "v") == 0 )
-            {
-                version();
-                tidyRelease( tdoc );
-                return 0;  /* success */
-
-            }
-            else if ( strncmp(argv[1], "--", 2 ) == 0)
-            {
-                if ( tidyOptParseValue(tdoc, argv[1]+2, argv[2]) )
-                {
-                    /* Set new error output stream if setting changed */
-                    ctmbstr post = tidyOptGetValue( tdoc, TidyErrFile );
-                    if ( post && (!errfil || !samefile(errfil, post)) )
-                    {
-                        errfil = post;
-                        errout = tidySetErrorFile( tdoc, post );
-                    }
-
-                    ++argv;
-                    --argc;
-                }
-            }
-
-#if SUPPORT_ACCESSIBILITY_CHECKS
-            else if ( strcasecmp(arg, "access") == 0 )
-            {
-                if ( argc >= 3 )
-                {
-                    uint acclvl = 0;
-                    int nfields = sscanf( argv[2], "%u", &acclvl );
-                    tidyOptSetInt( tdoc, TidyAccessibilityCheckLevel, acclvl );
-                    if (nfields > 0)
-                    {
-                        --argc;
-                        ++argv;
-                    }
-                }
-            }
-#endif
-
-            else
-            {
-                uint c;
-                ctmbstr s = argv[1];
-
-                while ( (c = *++s) != '\0' )
-                {
-                    switch ( c )
-                    {
-                    case 'i':
-                        tidyOptSetInt( tdoc, TidyIndentContent, TidyAutoState );
-                        if ( tidyOptGetInt(tdoc, TidyIndentSpaces) == 0 )
-                            tidyOptResetToDefault( tdoc, TidyIndentSpaces );
-                        break;
-
-                    /* Usurp -o for output file.  Anyone hiding end tags?
-                    case 'o':
-                        tidyOptSetBool( tdoc, TidyHideEndTags, yes );
-                        break;
-                    */
-
-                    case 'u':
-                        tidyOptSetBool( tdoc, TidyUpperCaseTags, yes );
-                        break;
-
-                    case 'c':
-                        tidyOptSetBool( tdoc, TidyMakeClean, yes );
-                        break;
-
-                    case 'g':
-                        tidyOptSetBool( tdoc, TidyGDocClean, yes );
-                        break;
-
-                    case 'b':
-                        tidyOptSetBool( tdoc, TidyMakeBare, yes );
-                        break;
-
-                    case 'n':
-                        tidyOptSetBool( tdoc, TidyNumEntities, yes );
-                        break;
-
-                    case 'm':
-                        tidyOptSetBool( tdoc, TidyWriteBack, yes );
-                        break;
-
-                    case 'e':
-                        tidyOptSetBool( tdoc, TidyShowMarkup, no );
-                        break;
-
-                    case 'q':
-                        tidyOptSetBool( tdoc, TidyQuiet, yes );
-                        break;
-
-                    default:
-                        unknownOption( c );
-                        break;
-                    }
-                }
-            }
-
-            --argc;
-            ++argv;
-            continue;
-        }
-
-        if ( argc > 1 )
-        {
-            htmlfil = argv[1];
-            if ( tidyOptGetBool(tdoc, TidyEmacs) )
-                tidyOptSetValue( tdoc, TidyEmacsFile, htmlfil );
-            status = tidyParseFile( tdoc, htmlfil );
-        }
-        else
-        {
-            htmlfil = "stdin";
-            status = tidyParseStdin( tdoc );
-        }
-
-        if ( status >= 0 )
-            status = tidyCleanAndRepair( tdoc );
-
-        if ( status >= 0 )
-            status = tidyRunDiagnostics( tdoc );
-
-        if ( status > 1 ) /* If errors, do we want to force output? */
-            status = ( tidyOptGetBool(tdoc, TidyForceOutput) ? status : -1 );
-
-        if ( status >= 0 && tidyOptGetBool(tdoc, TidyShowMarkup) )
-        {
-            if ( tidyOptGetBool(tdoc, TidyWriteBack) && argc > 1 )
-                status = tidySaveFile( tdoc, htmlfil );
-            else
-            {
-                ctmbstr outfil = tidyOptGetValue( tdoc, TidyOutFile );
-                if ( outfil )
-                    status = tidySaveFile( tdoc, outfil );
-                else
-                    status = tidySaveStdout( tdoc );
-            }
-        }
-
-        contentErrors   += tidyErrorCount( tdoc );
-        contentWarnings += tidyWarningCount( tdoc );
-        accessWarnings  += tidyAccessWarningCount( tdoc );
-
-        --argc;
-        ++argv;
-
-        if ( argc <= 1 )
-            break;
-    }
-
-    if (!tidyOptGetBool(tdoc, TidyQuiet) &&
-        errout == stderr && !contentErrors)
-        fprintf(errout, "\n");
-
-    if (contentErrors + contentWarnings > 0 && 
-         !tidyOptGetBool(tdoc, TidyQuiet))
-        tidyErrorSummary(tdoc);
-
-    if (!tidyOptGetBool(tdoc, TidyQuiet))
-        tidyGeneralInfo(tdoc);
-
-    /* called to free hash tables etc. */
-    tidyRelease( tdoc );
-
-    /* return status can be used by scripts */
-    if ( contentErrors > 0 )
-        return 2;
-
-    if ( contentWarnings > 0 )
-        return 1;
-
-    /* 0 signifies all is ok */
-    return 0;
-}
-
-/*
- * 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/experimental/TidyNodeIter.c
----------------------------------------------------------------------
diff --git a/DocFormats/3rdparty/external/w3c-tidy-html5/experimental/TidyNodeIter.c b/DocFormats/3rdparty/external/w3c-tidy-html5/experimental/TidyNodeIter.c
deleted file mode 100644
index f010d0c..0000000
--- a/DocFormats/3rdparty/external/w3c-tidy-html5/experimental/TidyNodeIter.c
+++ /dev/null
@@ -1,47 +0,0 @@
-#include "platform.h"
-#include "tidy-int.h"
-
-#include "TidyNodeIter.h"
-
-TidyNodeIter *newTidyNodeIter( Node *pStart )
-{
-    TidyNodeIter *pThis = NULL;
-    if (NULL != (pThis = MemAlloc( sizeof( TidyNodeIter ))))
-    {
-        ClearMemory( pThis, sizeof( TidyNodeIter ));
-        pThis->pTop = pStart;
-    }
-    return pThis;
-}
-
-Node *nextTidyNode( TidyNodeIter *pThis )
-{
-    if (NULL == pThis->pCurrent)
-    {
-        // just starting out, initialize
-        pThis->pCurrent = pThis->pTop->content;
-    }
-    else if (NULL != pThis->pCurrent->content)
-    {
-        // the next element, if any, is my first-born child
-        pThis->pCurrent = pThis->pCurrent->content;
-    }
-    else 
-    {
-        // no children, I guess my next younger brother inherits the throne.
-        while (   NULL == pThis->pCurrent->next
-               && pThis->pTop != pThis->pCurrent->parent )
-        {
-            //  no siblings, do any of my ancestors have younger sibs?
-            pThis->pCurrent = pThis->pCurrent->parent;
-        }
-        pThis->pCurrent = pThis->pCurrent->next;
-    }
-    return pThis->pCurrent;
-}
-
-void setCurrentNode( TidyNodeIter *pThis, Node *newCurr )
-{
-    if (NULL != newCurr)
-        pThis->pCurrent = newCurr;
-}


Mime
View raw message