Move all of the sprtf includes into tidyplatform.h
This commit is contained in:
parent
1cd0438849
commit
4e3c1a1562
|
@ -26,17 +26,12 @@
|
||||||
# include <windows.h> /* Force console to UTF8. */
|
# include <windows.h> /* Force console to UTF8. */
|
||||||
#endif
|
#endif
|
||||||
#if !defined(NDEBUG) && defined(_MSC_VER)
|
#if !defined(NDEBUG) && defined(_MSC_VER)
|
||||||
# include "sprtf.h"
|
|
||||||
# ifdef _CRTDBG_MAP_ALLOC
|
# ifdef _CRTDBG_MAP_ALLOC
|
||||||
# include <stdlib.h>
|
# include <stdlib.h>
|
||||||
# include <crtdbg.h>
|
# include <crtdbg.h>
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SPRTF
|
|
||||||
# define SPRTF printf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** Tidy will send errors to this file, which will be stderr later. */
|
/** Tidy will send errors to this file, which will be stderr later. */
|
||||||
static FILE* errout = NULL;
|
static FILE* errout = NULL;
|
||||||
|
|
||||||
|
|
|
@ -647,6 +647,20 @@ opaque_type( TidyIterator );
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/*=============================================================================
|
||||||
|
* Debugging
|
||||||
|
*===========================================================================*/
|
||||||
|
#if !defined(NDEBUG)
|
||||||
|
# include "sprtf.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SPRTF
|
||||||
|
# define SPRTF printf
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* __TIDY_PLATFORM_H__ */
|
#endif /* __TIDY_PLATFORM_H__ */
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,6 @@
|
||||||
|
|
||||||
#include "tidy.h"
|
#include "tidy.h"
|
||||||
#include "forward.h"
|
#include "forward.h"
|
||||||
#ifdef DEBUG_MEMORY
|
|
||||||
# include "sprtf.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static TidyMalloc g_malloc = NULL;
|
static TidyMalloc g_malloc = NULL;
|
||||||
static TidyRealloc g_realloc = NULL;
|
static TidyRealloc g_realloc = NULL;
|
||||||
|
|
|
@ -13,9 +13,6 @@
|
||||||
#include "forward.h"
|
#include "forward.h"
|
||||||
#include "fileio.h"
|
#include "fileio.h"
|
||||||
#include "tidy.h"
|
#include "tidy.h"
|
||||||
#if !defined(NDEBUG) && defined(_MSC_VER)
|
|
||||||
# include "sprtf.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct _fp_input_source
|
typedef struct _fp_input_source
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,9 +10,6 @@
|
||||||
#include "attrs.h"
|
#include "attrs.h"
|
||||||
#include "streamio.h"
|
#include "streamio.h"
|
||||||
#include "tmbstr.h"
|
#include "tmbstr.h"
|
||||||
#if !defined(NDEBUG) && defined(_MSC_VER)
|
|
||||||
# include "sprtf.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* duplicate attributes */
|
/* duplicate attributes */
|
||||||
AttVal *TY_(DupAttrs)( TidyDocImpl* doc, AttVal *attrs)
|
AttVal *TY_(DupAttrs)( TidyDocImpl* doc, AttVal *attrs)
|
||||||
|
|
|
@ -39,13 +39,6 @@
|
||||||
#include "clean.h"
|
#include "clean.h"
|
||||||
#include "utf8.h"
|
#include "utf8.h"
|
||||||
#include "streamio.h"
|
#include "streamio.h"
|
||||||
#ifdef _MSC_VER
|
|
||||||
# include "sprtf.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef SPRTF
|
|
||||||
# define SPRTF printf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(NDEBUG) && defined(_MSC_VER)
|
#if !defined(NDEBUG) && defined(_MSC_VER)
|
||||||
/* #define DEBUG_ALLOCATION special EXTRA allocation debug information - VERY NOISY */
|
/* #define DEBUG_ALLOCATION special EXTRA allocation debug information - VERY NOISY */
|
||||||
|
|
|
@ -14,9 +14,6 @@
|
||||||
#include "streamio.h"
|
#include "streamio.h"
|
||||||
#include "tmbstr.h"
|
#include "tmbstr.h"
|
||||||
#include "utf8.h"
|
#include "utf8.h"
|
||||||
#if !defined(NDEBUG) && defined(_MSC_VER)
|
|
||||||
# include "sprtf.h"
|
|
||||||
#endif
|
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,6 @@
|
||||||
#include "tidy-int.h"
|
#include "tidy-int.h"
|
||||||
#include "limits.h"
|
#include "limits.h"
|
||||||
#include "tmbstr.h"
|
#include "tmbstr.h"
|
||||||
#if !defined(NDEBUG) && defined(_MSC_VER)
|
|
||||||
# include "sprtf.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
|
|
@ -12,13 +12,6 @@
|
||||||
#include "clean.h"
|
#include "clean.h"
|
||||||
#include "tags.h"
|
#include "tags.h"
|
||||||
#include "tmbstr.h"
|
#include "tmbstr.h"
|
||||||
#ifdef _MSC_VER
|
|
||||||
# include "sprtf.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef SPRTF
|
|
||||||
# define SPRTF printf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Issue #72 - Need to know to avoid error-reporting - no warning only if --show-body-only yes
|
Issue #72 - Need to know to avoid error-reporting - no warning only if --show-body-only yes
|
||||||
|
|
|
@ -24,9 +24,6 @@
|
||||||
# ifdef DEBUG_PPRINT
|
# ifdef DEBUG_PPRINT
|
||||||
extern void dbg_show_node( TidyDocImpl* doc, Node *node, int caller, int indent );
|
extern void dbg_show_node( TidyDocImpl* doc, Node *node, int caller, int indent );
|
||||||
# endif
|
# endif
|
||||||
# ifdef DEBUG_INDENT
|
|
||||||
# include "sprtf.h"
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -62,10 +62,6 @@ TIDY_EXPORT char *get_date_time_stg();
|
||||||
TIDY_EXPORT int gettimeofday(struct timeval *tp, void *tzp);
|
TIDY_EXPORT int gettimeofday(struct timeval *tp, void *tzp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SPRTF
|
|
||||||
# define SPRTF sprtf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -10,9 +10,6 @@
|
||||||
#include "tidy-int.h"
|
#include "tidy-int.h"
|
||||||
#include "message.h"
|
#include "message.h"
|
||||||
#include "tmbstr.h"
|
#include "tmbstr.h"
|
||||||
#if !defined(NDEBUG) && defined(_MSC_VER)
|
|
||||||
# include "sprtf.h"
|
|
||||||
#endif
|
|
||||||
/* Attribute checking methods */
|
/* Attribute checking methods */
|
||||||
static CheckAttribs CheckIMG;
|
static CheckAttribs CheckIMG;
|
||||||
static CheckAttribs CheckLINK;
|
static CheckAttribs CheckLINK;
|
||||||
|
|
|
@ -34,9 +34,6 @@
|
||||||
#include "mappedio.h"
|
#include "mappedio.h"
|
||||||
#include "language.h"
|
#include "language.h"
|
||||||
|
|
||||||
#if !defined(NDEBUG) && defined(_MSC_VER)
|
|
||||||
# include "sprtf.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Create/Destroy a Tidy "document" object */
|
/* Create/Destroy a Tidy "document" object */
|
||||||
static TidyDocImpl* tidyDocCreate( TidyAllocator *allocator );
|
static TidyDocImpl* tidyDocCreate( TidyAllocator *allocator );
|
||||||
|
|
Loading…
Reference in a new issue