Commit 5497206e authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent cb8ff512
......@@ -7301,6 +7301,12 @@ DesktopEditor/raster/Metafile/Emf svnc_tsvn_003alogminsize=5
DesktopEditor/raster/Metafile/StarView svnc_tsvn_003alogminsize=5
DesktopEditor/raster/Metafile/Wmf svnc_tsvn_003alogminsize=5
DesktopEditor/xml svnc_tsvn_003alogminsize=5
DesktopEditor/xml/build svnc_tsvn_003alogminsize=5
DesktopEditor/xml/build/qt svnc_tsvn_003alogminsize=5
DesktopEditor/xml/build/test svnc_tsvn_003alogminsize=5
DesktopEditor/xml/build/test/qt svnc_tsvn_003alogminsize=5
DesktopEditor/xml/build/test/vs2013 svnc_tsvn_003alogminsize=5
DesktopEditor/xml/build/vs2013 svnc_tsvn_003alogminsize=5
DesktopEditor/xml/include svnc_tsvn_003alogminsize=5
DesktopEditor/xml/libxml2 svnc_tsvn_003alogminsize=5
DesktopEditor/xml/libxml2/VxWorks svnc_tsvn_003alogminsize=5
#ifndef __LIBXML_WIN32_CONFIG__
#define __LIBXML_WIN32_CONFIG__
#define HAVE_CTYPE_H
#define HAVE_STDARG_H
#define HAVE_MALLOC_H
#define HAVE_ERRNO_H
#define HAVE_STDINT_H
#if defined(_WIN32_WCE)
#undef HAVE_ERRNO_H
#include <windows.h>
#include "wincecompat.h"
#else
#define HAVE_SYS_STAT_H
#define HAVE__STAT
#define HAVE_STAT
#define HAVE_STDLIB_H
#define HAVE_TIME_H
#define HAVE_FCNTL_H
//#include <io.h>
//#include <direct.h>
#endif
#include <libxml/xmlversion.h>
#ifndef ICONV_CONST
#define ICONV_CONST const
#endif
//#ifdef NEED_SOCKETS
//#include <wsockcompat.h>
//#endif
/*
* Windows platforms may define except
*/
#undef except
#define HAVE_ISINF
#define HAVE_ISNAN
#include <math.h>
#if defined(_MSC_VER) || defined(__BORLANDC__)
/* MS C-runtime has functions which can be used in order to determine if
a given floating-point variable contains NaN, (+-)INF. These are
preferred, because floating-point technology is considered propriatary
by MS and we can assume that their functions know more about their
oddities than we do. */
#include <float.h>
/* Bjorn Reese figured a quite nice construct for isinf() using the _fpclass
function. */
#ifndef isinf
#define isinf(d) ((_fpclass(d) == _FPCLASS_PINF) ? 1 \
: ((_fpclass(d) == _FPCLASS_NINF) ? -1 : 0))
#endif
/* _isnan(x) returns nonzero if (x == NaN) and zero otherwise. */
#ifndef isnan
#define isnan(d) (_isnan(d))
#endif
#else /* _MSC_VER */
#ifndef isinf
int isinf (double d) {
int expon = 0;
double val = frexp (d, &expon);
if (expon == 1025) {
if (val == 0.5) {
return 1;
} else if (val == -0.5) {
return -1;
} else {
return 0;
}
} else {
return 0;
}
}
#endif
#ifndef isnan
int isnan (double d) {
int expon = 0;
double val = frexp (d, &expon);
if (expon == 1025) {
if (val == 0.5) {
return 0;
} else if (val == -0.5) {
return 0;
} else {
return 1;
}
} else {
return 0;
}
}
#endif
#endif /* _MSC_VER */
#if defined(_MSC_VER)
#define mkdir(p,m) _mkdir(p)
#define snprintf _snprintf
#if _MSC_VER < 1500
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
#endif
#elif defined(__MINGW32__)
#define mkdir(p,m) _mkdir(p)
#endif
/* Threading API to use should be specified here for compatibility reasons.
This is however best specified on the compiler's command-line. */
#if defined(LIBXML_THREAD_ENABLED)
#if !defined(HAVE_PTHREAD_H) && !defined(HAVE_WIN32_THREADS) && !defined(_WIN32_WCE)
#define HAVE_WIN32_THREADS
#endif
#endif
#ifndef LIBXML_READER_ENABLED
#define LIBXML_READER_ENABLED
#endif
#ifndef LIBXML_PUSH_ENABLED
#define LIBXML_PUSH_ENABLED
#endif
#ifndef LIBXML_HTML_ENABLED
#define LIBXML_HTML_ENABLED
#endif
/* Some third-party libraries far from our control assume the following
is defined, which it is not if we don't include windows.h. */
#if !defined(FALSE)
#define FALSE 0
#endif
#if !defined(TRUE)
#define TRUE (!(FALSE))
#endif
#endif /* __LIBXML_WIN32_CONFIG__ */
#-------------------------------------------------
#
# Project created by QtCreator 2014-10-10T14:24:04
#
#-------------------------------------------------
QT -= core gui
TARGET = libxml
TEMPLATE = lib
CONFIG += staticlib
QMAKE_CXXFLAGS += -std=c++11 -Wall -g
DEFINES += HAVE_VA_COPY
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../../SDK/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
################################################
INCLUDEPATH += \
../../libxml2/include \
../../libxml2/include/libxml
SOURCES += \
../../libxml2/buf.c \
../../libxml2/c14n.c \
../../libxml2/catalog.c \
../../libxml2/chvalid.c \
../../libxml2/debugXML.c \
../../libxml2/dict.c \
../../libxml2/DOCBparser.c \
../../libxml2/encoding.c \
../../libxml2/entities.c \
../../libxml2/error.c \
../../libxml2/globals.c \
../../libxml2/HTMLparser.c \
../../libxml2/HTMLtree.c \
../../libxml2/legacy.c \
../../libxml2/list.c \
../../libxml2/nanoftp.c \
../../libxml2/nanohttp.c \
../../libxml2/parser.c \
../../libxml2/pattern.c \
../../libxml2/relaxng.c \
../../libxml2/SAX.c \
../../libxml2/SAX2.c \
../../libxml2/schematron.c \
../../libxml2/threads.c \
../../libxml2/tree.c \
../../libxml2/uri.c \
../../libxml2/valid.c \
../../libxml2/xinclude.c \
../../libxml2/xlink.c \
../../libxml2/xmlIO.c \
../../libxml2/xmlmemory.c \
../../libxml2/xmlmodule.c \
../../libxml2/xmlreader.c \
../../libxml2/xmlregexp.c \
../../libxml2/xmlsave.c \
../../libxml2/xmlschemas.c \
../../libxml2/xmlschemastypes.c \
../../libxml2/xmlstring.c \
../../libxml2/xmlunicode.c \
../../libxml2/xmlwriter.c \
../../libxml2/xpath.c \
../../libxml2/xpointer.c \
../../libxml2/parserInternals.c \
../../libxml2/hash.c
SOURCES += \
../../src/xmllight.cpp \
../../src/xmldom.cpp
HEADERS += \
../XML/elfgcchack.h \
../XML/libxml.h \
unix {
target.path = /usr/lib
INSTALLS += target
}
#include <QCoreApplication>
#include "../../../include/xmlutils.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
XmlUtils::CXmlNode oNode;
oNode.FromXmlFile(L"D:\\document.xml");
return a.exec();
}
#-------------------------------------------------
#
# Project created by QtCreator 2015-07-13T14:59:36
#
#-------------------------------------------------
QT += core
QT -= gui
TARGET = test
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
LIBS += -L../../../qt/Debug/debug -llibxml
SOURCES += main.cpp
========================================================================
CONSOLE APPLICATION : test Project Overview
========================================================================
AppWizard has created this test application for you.
This file contains a summary of what you will find in each of the files that
make up your test application.
test.vcxproj
This is the main project file for VC++ projects generated using an Application Wizard.
It contains information about the version of Visual C++ that generated the file, and
information about the platforms, configurations, and project features selected with the
Application Wizard.
test.vcxproj.filters
This is the filters file for VC++ projects generated using an Application Wizard.
It contains information about the association between the files in your project
and the filters. This association is used in the IDE to show grouping of files with
similar extensions under a specific node (for e.g. ".cpp" files are associated with the
"Source Files" filter).
test.cpp
This is the main application source file.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named test.pch and a precompiled types file named StdAfx.obj.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" comments to indicate parts of the source code you
should add to or customize.
/////////////////////////////////////////////////////////////////////////////
// stdafx.cpp : source file that includes just the standard includes
// test.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include "targetver.h"
#include <stdio.h>
#include <tchar.h>
// TODO: reference additional headers your program requires here
#pragma once
// Including SDKDDKVer.h defines the highest available Windows platform.
// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
#include <SDKDDKVer.h>
// test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "../../../include/xmlutils.h"
#define ASC_VS
#ifdef _DEBUG
#ifdef ASC_VS
#pragma comment (lib, "../../vs2013/x64/Debug/libxml.lib")
#else
#pragma comment (lib, "../../qt/Debug/debug/libxml.lib")
#endif
#else
#ifdef ASC_VS
#pragma comment (lib, "../../vs2013/x64/Release/libxml.lib")
#else
#pragma comment (lib, "../../qt/Release/release/libxml.lib")
#endif
#endif
int _tmain(int argc, _TCHAR* argv[])
{
XmlUtils::CXmlNode oNode;
oNode.FromXmlFile(L"D:\\document.xml");
return 0;
}

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30723.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test", "test.vcxproj", "{A8FA938C-516D-4E5D-BA19-E07A69AEB53B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A8FA938C-516D-4E5D-BA19-E07A69AEB53B}.Debug|Win32.ActiveCfg = Debug|Win32
{A8FA938C-516D-4E5D-BA19-E07A69AEB53B}.Debug|Win32.Build.0 = Debug|Win32
{A8FA938C-516D-4E5D-BA19-E07A69AEB53B}.Debug|x64.ActiveCfg = Debug|x64
{A8FA938C-516D-4E5D-BA19-E07A69AEB53B}.Debug|x64.Build.0 = Debug|x64
{A8FA938C-516D-4E5D-BA19-E07A69AEB53B}.Release|Win32.ActiveCfg = Release|Win32
{A8FA938C-516D-4E5D-BA19-E07A69AEB53B}.Release|Win32.Build.0 = Release|Win32
{A8FA938C-516D-4E5D-BA19-E07A69AEB53B}.Release|x64.ActiveCfg = Release|x64
{A8FA938C-516D-4E5D-BA19-E07A69AEB53B}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.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="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{A8FA938C-516D-4E5D-BA19-E07A69AEB53B}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>test</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<Text Include="ReadMe.txt" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="stdafx.h" />
<ClInclude Include="targetver.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="stdafx.cpp" />
<ClCompile Include="test.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<Text Include="ReadMe.txt" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="stdafx.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="targetver.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="stdafx.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="test.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
\ No newline at end of file
#ifndef __LIBXML_WIN32_CONFIG__
#define __LIBXML_WIN32_CONFIG__
#define HAVE_CTYPE_H
#define HAVE_STDARG_H
#define HAVE_MALLOC_H
#define HAVE_ERRNO_H
#define HAVE_STDINT_H
#if defined(_WIN32_WCE)
#undef HAVE_ERRNO_H
#include <windows.h>
#include "wincecompat.h"
#else
#define HAVE_SYS_STAT_H
#define HAVE__STAT
#define HAVE_STAT
#define HAVE_STDLIB_H
#define HAVE_TIME_H
#define HAVE_FCNTL_H
#include <io.h>
#include <direct.h>
#endif
#include <libxml/xmlversion.h>
#ifndef ICONV_CONST
#define ICONV_CONST const
#endif
#ifdef NEED_SOCKETS
#include <wsockcompat.h>
#endif
/*
* Windows platforms may define except
*/
#undef except
#define HAVE_ISINF
#define HAVE_ISNAN
#include <math.h>
#if defined(_MSC_VER) || defined(__BORLANDC__)
/* MS C-runtime has functions which can be used in order to determine if
a given floating-point variable contains NaN, (+-)INF. These are
preferred, because floating-point technology is considered propriatary
by MS and we can assume that their functions know more about their
oddities than we do. */
#include <float.h>
/* Bjorn Reese figured a quite nice construct for isinf() using the _fpclass
function. */
#ifndef isinf
#define isinf(d) ((_fpclass(d) == _FPCLASS_PINF) ? 1 \
: ((_fpclass(d) == _FPCLASS_NINF) ? -1 : 0))
#endif
/* _isnan(x) returns nonzero if (x == NaN) and zero otherwise. */
#ifndef isnan
#define isnan(d) (_isnan(d))
#endif
#else /* _MSC_VER */
#ifndef isinf
static int isinf (double d) {
int expon = 0;
double val = frexp (d, &expon);
if (expon == 1025) {
if (val == 0.5) {
return 1;
} else if (val == -0.5) {
return -1;
} else {
return 0;
}
} else {
return 0;
}
}
#endif
#ifndef isnan
static int isnan (double d) {
int expon = 0;
double val = frexp (d, &expon);
if (expon == 1025) {
if (val == 0.5) {
return 0;
} else if (val == -0.5) {
return 0;
} else {
return 1;
}
} else {
return 0;
}
}
#endif
#endif /* _MSC_VER */
#if defined(_MSC_VER)
#define mkdir(p,m) _mkdir(p)
#define snprintf _snprintf
#if _MSC_VER < 1500
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
#endif
#elif defined(__MINGW32__)
#define mkdir(p,m) _mkdir(p)
#endif
/* Threading API to use should be specified here for compatibility reasons.
This is however best specified on the compiler's command-line. */
#if defined(LIBXML_THREAD_ENABLED)
#if !defined(HAVE_PTHREAD_H) && !defined(HAVE_WIN32_THREADS) && !defined(_WIN32_WCE)
#define HAVE_WIN32_THREADS
#endif
#endif
#ifndef LIBXML_READER_ENABLED
#define LIBXML_READER_ENABLED
#endif
#ifndef LIBXML_PUSH_ENABLED
#define LIBXML_PUSH_ENABLED
#endif
#ifndef LIBXML_HTML_ENABLED
#define LIBXML_HTML_ENABLED
#endif
/* Some third-party libraries far from our control assume the following
is defined, which it is not if we don't include windows.h. */
#if !defined(FALSE)
#define FALSE 0
#endif
#if !defined(TRUE)
#define TRUE (!(FALSE))
#endif
#endif /* __LIBXML_WIN32_CONFIG__ */
\ No newline at end of file

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libxml2", "libxml2.vcxproj", "{21663823-DE45-479B-91D0-B4FEF4916EF0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{21663823-DE45-479B-91D0-B4FEF4916EF0}.Debug|Win32.ActiveCfg = Debug|Win32
{21663823-DE45-479B-91D0-B4FEF4916EF0}.Debug|Win32.Build.0 = Debug|Win32
{21663823-DE45-479B-91D0-B4FEF4916EF0}.Debug|x64.ActiveCfg = Debug|x64
{21663823-DE45-479B-91D0-B4FEF4916EF0}.Debug|x64.Build.0 = Debug|x64
{21663823-DE45-479B-91D0-B4FEF4916EF0}.Release|Win32.ActiveCfg = Release|Win32
{21663823-DE45-479B-91D0-B4FEF4916EF0}.Release|Win32.Build.0 = Release|Win32
{21663823-DE45-479B-91D0-B4FEF4916EF0}.Release|x64.ActiveCfg = Release|x64
{21663823-DE45-479B-91D0-B4FEF4916EF0}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
<?xml version="1.0" encoding="windows-1251"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8,00"
Name="libxml2"
ProjectGUID="{21663823-DE45-479B-91D0-B4FEF4916EF0}"
RootNamespace="libxml2"
>
<Platforms>
<Platform
Name="Win32"
/>
<Platform
Name="x64"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="4"
UseOfATL="0"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="&quot;$(ProjectDir)&quot;;&quot;$(ProjectDir)../XML/include&quot;;&quot;$(ProjectDir)../XML/include/libxml&quot;;&quot;$(ProjectDir)/support&quot;"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
WarningLevel="3"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
IgnoreAllDefaultLibraries="true"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug|x64"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="4"
UseOfMFC="0"
UseOfATL="0"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="&quot;$(ProjectDir)&quot;;&quot;$(ProjectDir)../XML/include&quot;;&quot;$(ProjectDir)../XML/include/libxml&quot;"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
IgnoreAllDefaultLibraries="true"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="4"
CharacterSet="2"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="&quot;$(ProjectDir)&quot;;&quot;$(ProjectDir)../XML/include&quot;;&quot;$(ProjectDir)../XML/include/libxml&quot;;&quot;$(ProjectDir)/support&quot;"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|x64"
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="4"
CharacterSet="2"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="&quot;$(ProjectDir)&quot;;&quot;$(ProjectDir)../XML/include&quot;;&quot;$(ProjectDir)../XML/include/libxml&quot;"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath="..\XML\buf.c"
>
</File>
<File
RelativePath="..\XML\c14n.c"
>
</File>
<File
RelativePath="..\XML\catalog.c"
>
</File>
<File
RelativePath="..\XML\chvalid.c"
>
</File>
<File
RelativePath="..\XML\debugXML.c"
>
</File>
<File
RelativePath="..\XML\dict.c"
>
</File>
<File
RelativePath="..\XML\DOCBparser.c"
>
</File>
<File
RelativePath="..\XML\encoding.c"
>
</File>
<File
RelativePath="..\XML\entities.c"
>
</File>
<File
RelativePath="..\XML\error.c"
>
</File>
<File
RelativePath="..\XML\globals.c"
>
</File>
<File
RelativePath="..\XML\hash.c"
>
</File>
<File
RelativePath="..\XML\HTMLparser.c"
>
</File>
<File
RelativePath="..\XML\HTMLtree.c"
>
</File>
<File
RelativePath="..\XML\legacy.c"
>
</File>
<File
RelativePath="..\XML\list.c"
>
</File>
<File
RelativePath="..\XML\nanoftp.c"
>
</File>
<File
RelativePath="..\XML\nanohttp.c"
>
</File>
<File
RelativePath="..\XML\parser.c"
>
</File>
<File
RelativePath="..\XML\parserInternals.c"
>
</File>
<File
RelativePath="..\XML\pattern.c"
>
</File>
<File
RelativePath="..\XML\relaxng.c"
>
</File>
<File
RelativePath="..\XML\SAX.c"
>
</File>
<File
RelativePath="..\XML\SAX2.c"
>
</File>
<File
RelativePath="..\XML\schematron.c"
>
</File>
<File
RelativePath="..\XML\threads.c"
>
</File>
<File
RelativePath="..\XML\tree.c"
>
</File>
<File
RelativePath="..\XML\uri.c"
>
</File>
<File
RelativePath="..\XML\valid.c"
>
</File>
<File
RelativePath="..\XML\xinclude.c"
>
</File>
<File
RelativePath="..\XML\xlink.c"
>
</File>
<File
RelativePath="..\XML\xmlcatalog.c"
>
</File>
<File
RelativePath="..\XML\xmlIO.c"
>
</File>
<File
RelativePath="..\XML\xmlmemory.c"
>
</File>
<File
RelativePath="..\XML\xmlmodule.c"
>
</File>
<File
RelativePath="..\XML\xmlreader.c"
>
</File>
<File
RelativePath="..\XML\xmlregexp.c"
>
</File>
<File
RelativePath="..\XML\xmlsave.c"
>
</File>
<File
RelativePath="..\XML\xmlschemas.c"
>
</File>
<File
RelativePath="..\XML\xmlschemastypes.c"
>
</File>
<File
RelativePath="..\XML\xmlstring.c"
>
</File>
<File
RelativePath="..\XML\xmlunicode.c"
>
</File>
<File
RelativePath="..\XML\xmlwriter.c"
>
</File>
<File
RelativePath="..\XML\xpath.c"
>
</File>
<File
RelativePath="..\XML\xpointer.c"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath="..\XML\elfgcchack.h"
>
</File>
<File
RelativePath="..\XML\libxml.h"
>
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\libxml2\buf.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\c14n.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\catalog.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\chvalid.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\debugXML.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\dict.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\DOCBparser.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\encoding.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\entities.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\error.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\globals.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\hash.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\HTMLparser.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\HTMLtree.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\legacy.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\list.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\nanoftp.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\nanohttp.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\parser.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\parserInternals.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\pattern.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\relaxng.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\SAX.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\SAX2.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\schematron.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\threads.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\tree.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\uri.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\valid.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xinclude.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xlink.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xmlcatalog.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xmlIO.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xmlmemory.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xmlmodule.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xmlreader.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xmlregexp.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xmlsave.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xmlschemas.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xmlschemastypes.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xmlstring.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xmlunicode.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xmlwriter.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xpath.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\libxml2\xpointer.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\xmldom.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\xmllight.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\libxml2\elfgcchack.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\libxml2\libxml.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\include\xmlutils.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment