21 #define MAX(a,b) (((a) > (b))?(a):(b)) 
   24 #define MIN(a,b) (((a) < (b))?(a):(b)) 
   33 #define flg_BadForm     0x00000001 
   34 #define flg_BadMain     0x00000002 
   91 #if PRESERVE_FILE_TIMES 
   92     struct utimbuf      filetimes;
 
  134 #define tidyDocToImpl( tdoc )           ((TidyDocImpl*)(tdoc)) 
  135 #define tidyImplToDoc( doc )            ((TidyDoc)(doc)) 
  137 #define tidyMessageToImpl( tmessage )   ((TidyMessageImpl*)(tmessage)) 
  138 #define tidyImplToMessage( message )    ((TidyMessage)(message)) 
  140 #define tidyNodeToImpl( tnod )          ((Node*)(tnod)) 
  141 #define tidyImplToNode( node )          ((TidyNode)(node)) 
  143 #define tidyAttrToImpl( tattr )         ((AttVal*)(tattr)) 
  144 #define tidyImplToAttr( attval )        ((TidyAttr)(attval)) 
  146 #define tidyOptionToImpl( topt )        ((const TidyOptionImpl*)(topt)) 
  147 #define tidyImplToOption( option )      ((TidyOption)(option)) 
  151 #define TidyDocAlloc(doc, size) TidyAlloc((doc)->allocator, size) 
  152 #define TidyDocRealloc(doc, block, size) TidyRealloc((doc)->allocator, block, size) 
  153 #define TidyDocFree(doc, block) TidyFree((doc)->allocator, block) 
  154 #define TidyDocPanic(doc, msg) TidyPanic((doc)->allocator, msg) 
Read configuration files and manage configuration properties.
 
#define TY_PRIVATE
Definition: forward.h:29
 
#define TY_(str)
Definition: forward.h:23
 
Bool(TIDY_CALL * TidyOptCallback)(ctmbstr option, ctmbstr value)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:573
 
void(TIDY_CALL * TidyConfigChangeCallback)(TidyDoc tdoc, TidyOption option)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:616
 
Bool(TIDY_CALL * TidyConfigCallback)(TidyDoc tdoc, ctmbstr option, ctmbstr value)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:597
 
void(TIDY_CALL * TidyPPProgress)(TidyDoc tdoc, uint line, uint col, uint destLine)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:1532
 
Bool(TIDY_CALL * TidyMessageCallback)(TidyMessage tmessage)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:1286
 
Bool(TIDY_CALL * TidyReportCallback)(TidyDoc tdoc, TidyReportLevel lvl, uint line, uint col, ctmbstr code, va_list args)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:1260
 
Bool(TIDY_CALL * TidyReportFilter)(TidyDoc tdoc, TidyReportLevel lvl, uint line, uint col, ctmbstr mssg)
This typedef represents the required signature for your provided callback function should you wish to...
Definition: tidy.h:1221
 
This type is used to define a structure for keeping track of the values for each option.
Definition: config.h:122
 
Maintains a list of messages not to display.
Definition: message.h:194
 
TidyReportLevel
Message severity level, used throughout LibTidy to indicate the severity or status of a message.
Definition: tidyenum.h:1402
 
TidyPPProgress progressCallback
Definition: tidy-int.h:63
 
TidyConfigImpl config
Definition: tidy-int.h:44
 
void * appData
Definition: tidy-int.h:87
 
ctmbstr messageKey
Definition: tidy-int.h:115
 
uint badLayout
Definition: tidy-int.h:75
 
uint code
Definition: tidy-int.h:105
 
ctmbstr messagePrefixDefault
Definition: tidy-int.h:126
 
tmbstr messagePos
Definition: tidy-int.h:124
 
uint badChars
Definition: tidy-int.h:76
 
ctmbstr messageFormat
Definition: tidy-int.h:118
 
int line
Definition: tidy-int.h:106
 
tmbstr messagePosDefault
Definition: tidy-int.h:123
 
TidyPrintImpl pprint
Definition: tidy-int.h:51
 
struct printfArg * arguments
Definition: tidy-int.h:113
 
NodeTraversalSignal
Definition: tidy-int.h:167
 
@ ContinueTraversal
Definition: tidy-int.h:168
 
@ SkipChildren
Definition: tidy-int.h:169
 
@ ExitTraversal
Definition: tidy-int.h:173
 
@ SkipSiblings
Definition: tidy-int.h:170
 
@ VisitParent
Definition: tidy-int.h:172
 
@ SkipChildrenAndSiblings
Definition: tidy-int.h:171
 
tmbstr message
Definition: tidy-int.h:121
 
uint badForm
Definition: tidy-int.h:77
 
uint footnotes
Definition: tidy-int.h:78
 
Node root
Definition: tidy-int.h:39
 
int column
Definition: tidy-int.h:107
 
TidyTagImpl tags
Definition: tidy-int.h:45
 
TidyAccessImpl access
Definition: tidy-int.h:47
 
tmbstr messageOutput
Definition: tidy-int.h:130
 
ctmbstr messagePrefix
Definition: tidy-int.h:127
 
uint badAccess
Definition: tidy-int.h:74
 
StreamOut * docOut
Definition: tidy-int.h:55
 
TidyConfigChangeCallback pConfigChangeCallback
Definition: tidy-int.h:62
 
tmbstr messageOutputDefault
Definition: tidy-int.h:129
 
TidyAttribImpl attribs
Definition: tidy-int.h:46
 
StreamIn * docIn
Definition: tidy-int.h:54
 
TidyMutedMessages muted
Definition: tidy-int.h:48
 
StreamOut * errout
Definition: tidy-int.h:56
 
tmbstr givenDoctype
Definition: tidy-int.h:94
 
uint docErrors
Definition: tidy-int.h:71
 
ctmbstr messageFormatDefault
Definition: tidy-int.h:117
 
TidyDocImpl * tidyDoc
Definition: tidy-int.h:103
 
TidyAllocator * allocator
Definition: tidy-int.h:84
 
Bool HTML5Mode
Definition: tidy-int.h:80
 
uint warnings
Definition: tidy-int.h:68
 
Bool muted
Definition: tidy-int.h:110
 
int argcount
Definition: tidy-int.h:112
 
TidyOptCallback pOptCallback
Definition: tidy-int.h:60
 
uint nClassId
Definition: tidy-int.h:88
 
TidyReportLevel level
Definition: tidy-int.h:108
 
uint accessErrors
Definition: tidy-int.h:69
 
tmbstr messageDefault
Definition: tidy-int.h:120
 
NodeTraversalSignal NodeTraversalCallBack(TidyDocImpl *doc, Node *node, void *propagate)
Definition: tidy-int.h:176
 
TidyReportCallback reportCallback
Definition: tidy-int.h:58
 
Bool inputHadBOM
Definition: tidy-int.h:89
 
int parseStatus
Definition: tidy-int.h:72
 
uint infoMessages
Definition: tidy-int.h:70
 
TidyMessageCallback messageCallback
Definition: tidy-int.h:59
 
Bool allowMessage
Definition: tidy-int.h:109
 
uint errors
Definition: tidy-int.h:67
 
uint optionErrors
Definition: tidy-int.h:66
 
Bool xmlDetected
Definition: tidy-int.h:81
 
Node * tidyNode
Definition: tidy-int.h:104
 
Lexer * lexer
Definition: tidy-int.h:41
 
TidyConfigCallback pConfigCallback
Definition: tidy-int.h:61
 
TidyReportFilter reportFilter
Definition: tidy-int.h:57
 
Definition: tidy-int.h:37
 
The basic struct for communicating a message within LibTidy.
Definition: tidy-int.h:102
 
Defines HTML Tidy public API implemented by LibTidy.