20 #define MAX(a,b) (((a) > (b))?(a):(b)) 23 #define MIN(a,b) (((a) < (b))?(a):(b)) 32 #define flg_BadForm 0x00000001 33 #define flg_BadMain 0x00000002 47 #if SUPPORT_ACCESSIBILITY_CHECKS 89 #ifdef TIDY_STORE_ORIGINAL_TEXT 93 #if PRESERVE_FILE_TIMES 94 struct utimbuf filetimes;
115 #define tidyDocToImpl( tdoc ) ((TidyDocImpl*)(tdoc)) 116 #define tidyImplToDoc( doc ) ((TidyDoc)(doc)) 118 #define tidyNodeToImpl( tnod ) ((Node*)(tnod)) 119 #define tidyImplToNode( node ) ((TidyNode)(node)) 121 #define tidyAttrToImpl( tattr ) ((AttVal*)(tattr)) 122 #define tidyImplToAttr( attval ) ((TidyAttr)(attval)) 124 #define tidyOptionToImpl( topt ) ((const TidyOptionImpl*)(topt)) 125 #define tidyImplToOption( option ) ((TidyOption)(option)) 130 #define TidyDocAlloc(doc, size) TidyAlloc((doc)->allocator, size) 131 #define TidyDocRealloc(doc, block, size) TidyRealloc((doc)->allocator, block, size) 132 #define TidyDocFree(doc, block) TidyFree((doc)->allocator, block) 133 #define TidyDocPanic(doc, msg) TidyPanic((doc)->allocator, msg) 135 int TY_(DocParseStream)( TidyDocImpl* impl, StreamIn* in );
uint docErrors
Definition: tidy-int.h:71
uint badForm
Definition: tidy-int.h:77
Definition: tidy-int.h:150
Bool(TIDY_CALL * TidyReportFilter2)(TidyDoc tdoc, TidyReportLevel lvl, uint line, uint col, ctmbstr mssg, va_list args)
Definition: tidy.h:645
TidyReportFilter mssgFilt
Definition: tidy-int.h:59
TidyReportFilter2 mssgFilt2
Definition: tidy-int.h:60
Definition: tidy-int.h:149
TidyPPProgress progressCallback
Definition: tidy-int.h:63
Bool(TIDY_CALL * TidyReportFilter)(TidyDoc tdoc, TidyReportLevel lvl, uint line, uint col, ctmbstr mssg)
Callback to filter messages by diagnostic level: info, warning, etc.
Definition: tidy.h:642
TidyConfigImpl config
Definition: tidy-int.h:43
Definition: tidy-int.h:152
uint infoMessages
Definition: tidy-int.h:70
#define tidyImplToNode(node)
Definition: tidy-int.h:119
void * appData
Definition: tidy-int.h:85
uint badAccess
Definition: tidy-int.h:74
StreamOut * errout
Definition: tidy-int.h:58
#define tidyAttrToImpl(tattr)
Definition: tidy-int.h:121
Definition: tidy-int.h:35
Bool inputHadBOM
Definition: tidy-int.h:87
TidyPrintImpl pprint
Definition: tidy-int.h:53
tmbstr givenDoctype
Definition: tidy-int.h:96
NodeTraversalSignal NodeTraversalCallBack(TidyDocImpl *doc, Node *node, void *propagate)
Definition: tidy-int.h:155
StreamIn * docIn
Definition: tidy-int.h:56
#define tidyNodeToImpl(tnod)
Definition: tidy-int.h:118
#define tidyImplToOption(option)
Definition: tidy-int.h:125
StreamOut * docOut
Definition: tidy-int.h:57
#define tidyImplToDoc(doc)
Definition: tidy-int.h:116
Defines HTML Tidy API implemented by tidy library.
uint badChars
Definition: tidy-int.h:76
uint errors
Definition: tidy-int.h:67
TidyOptCallback pOptCallback
Definition: tidy-int.h:62
Node root
Definition: tidy-int.h:38
#define tidyImplToAttr(attval)
Definition: tidy-int.h:122
#define tidyOptionToImpl(topt)
Definition: tidy-int.h:124
Definition: tidy-int.h:151
int parseStatus
Definition: tidy-int.h:72
Bool(TIDY_CALL * TidyReportFilter3)(TidyDoc tdoc, TidyReportLevel lvl, uint line, uint col, ctmbstr code, va_list args)
Definition: tidy.h:648
uint accessErrors
Definition: tidy-int.h:69
Definition: tidy-int.h:148
Bool(TIDY_CALL * TidyOptCallback)(ctmbstr option, ctmbstr value)
Applications using TidyLib may want to augment command-line and configuration file options...
Definition: tidy.h:421
Definition: tidy-int.h:147
TidyTagImpl tags
Definition: tidy-int.h:44
Opaque document datatype.
TidyAccessImpl access
Definition: tidy-int.h:49
TidyReportFilter3 mssgFilt3
Definition: tidy-int.h:61
#define TY_(str)
Definition: forward.h:23
#define tidyDocToImpl(tdoc)
Definition: tidy-int.h:115
Opaque attribute datatype.
Lexer * lexer
Definition: tidy-int.h:40
TidyAllocator * allocator
Definition: tidy-int.h:82
void(TIDY_CALL * TidyPPProgress)(TidyDoc tdoc, uint line, uint col, uint destLine)
Callback to track the progress of the pretting printing process.
Definition: tidy.h:675
TidyAttribImpl attribs
Definition: tidy-int.h:45
NodeTraversalSignal
Definition: tidy-int.h:145
uint badLayout
Definition: tidy-int.h:75
uint nClassId
Definition: tidy-int.h:86
uint optionErrors
Definition: tidy-int.h:66
Bool HTML5Mode
Definition: tidy-int.h:79
uint warnings
Definition: tidy-int.h:68