HTML Tidy  5.4.0
The HTACG Tidy HTML Project
tidy-int.h File Reference

Go to the source code of this file.

Data Structures

struct  TidyDocImpl
 

Macros

#define flg_BadForm   0x00000001
 
#define flg_BadMain   0x00000002
 
#define MAX(a, b)   (((a) > (b))?(a):(b))
 
#define MIN(a, b)   (((a) < (b))?(a):(b))
 
#define tidyAttrToImpl(tattr)   ((AttVal*)(tattr))
 
#define TidyDocAlloc(doc, size)   TidyAlloc((doc)->allocator, size)
 Wrappers for easy memory allocation using the document's allocator. More...
 
#define TidyDocFree(doc, block)   TidyFree((doc)->allocator, block)
 
#define TidyDocPanic(doc, msg)   TidyPanic((doc)->allocator, msg)
 
#define TidyDocRealloc(doc, block, size)   TidyRealloc((doc)->allocator, block, size)
 
#define tidyDocToImpl(tdoc)   ((TidyDocImpl*)(tdoc))
 
#define tidyImplToAttr(attval)   ((TidyAttr)(attval))
 
#define tidyImplToDoc(doc)   ((TidyDoc)(doc))
 
#define tidyImplToNode(node)   ((TidyNode)(node))
 
#define tidyImplToOption(option)   ((TidyOption)(option))
 
#define tidyNodeToImpl(tnod)   ((Node*)(tnod))
 
#define tidyOptionToImpl(topt)   ((const TidyOptionImpl*)(topt))
 

Typedefs

typedef NodeTraversalSignal NodeTraversalCallBack(TidyDocImpl *doc, Node *node, void *propagate)
 

Enumerations

enum  NodeTraversalSignal {
  ContinueTraversal,
  SkipChildren,
  SkipSiblings,
  SkipChildrenAndSiblings,
  VisitParent,
  ExitTraversal
}
 

Functions

int TY_❪DocParseStream❫ (TidyDocImpl *impl, StreamIn *in)
 
NodeTraversalSignal TY_❪TraverseNodeTree❫ (TidyDocImpl *doc, Node *node, NodeTraversalCallBack *cb, void *propagate)
 

Data Structure Documentation

◆ _TidyDocImpl

struct _TidyDocImpl
Data Fields
TidyAccessImpl access
uint accessErrors
TidyAllocator * allocator
void * appData
TidyAttribImpl attribs
uint badAccess
uint badChars
uint badForm
uint badLayout
TidyConfigImpl config
uint docErrors
StreamIn * docIn
StreamOut * docOut
uint errors
StreamOut * errout
tmbstr givenDoctype
Bool HTML5Mode
uint infoMessages
Bool inputHadBOM
Lexer * lexer
TidyReportFilter mssgFilt
TidyReportFilter2 mssgFilt2
TidyReportFilter3 mssgFilt3
uint nClassId
uint optionErrors
int parseStatus
TidyOptCallback pOptCallback
TidyPrintImpl pprint
TidyPPProgress progressCallback
Node root
TidyTagImpl tags
uint warnings

Macro Definition Documentation

◆ flg_BadForm

#define flg_BadForm   0x00000001

◆ flg_BadMain

#define flg_BadMain   0x00000002

◆ MAX

#define MAX (   a,
 
)    (((a) > (b))?(a):(b))

◆ MIN

#define MIN (   a,
 
)    (((a) < (b))?(a):(b))

◆ tidyAttrToImpl

#define tidyAttrToImpl (   tattr)    ((AttVal*)(tattr))

◆ TidyDocAlloc

#define TidyDocAlloc (   doc,
  size 
)    TidyAlloc((doc)->allocator, size)

Wrappers for easy memory allocation using the document's allocator.

◆ TidyDocFree

#define TidyDocFree (   doc,
  block 
)    TidyFree((doc)->allocator, block)

◆ TidyDocPanic

#define TidyDocPanic (   doc,
  msg 
)    TidyPanic((doc)->allocator, msg)

◆ TidyDocRealloc

#define TidyDocRealloc (   doc,
  block,
  size 
)    TidyRealloc((doc)->allocator, block, size)

◆ tidyDocToImpl

#define tidyDocToImpl (   tdoc)    ((TidyDocImpl*)(tdoc))

◆ tidyImplToAttr

#define tidyImplToAttr (   attval)    ((TidyAttr)(attval))

◆ tidyImplToDoc

#define tidyImplToDoc (   doc)    ((TidyDoc)(doc))

◆ tidyImplToNode

#define tidyImplToNode (   node)    ((TidyNode)(node))

◆ tidyImplToOption

#define tidyImplToOption (   option)    ((TidyOption)(option))

◆ tidyNodeToImpl

#define tidyNodeToImpl (   tnod)    ((Node*)(tnod))

◆ tidyOptionToImpl

#define tidyOptionToImpl (   topt)    ((const TidyOptionImpl*)(topt))

Typedef Documentation

◆ NodeTraversalCallBack

typedef NodeTraversalSignal NodeTraversalCallBack(TidyDocImpl *doc, Node *node, void *propagate)

Enumeration Type Documentation

◆ NodeTraversalSignal

Enumerator
ContinueTraversal 
SkipChildren 
SkipSiblings 
SkipChildrenAndSiblings 
VisitParent 
ExitTraversal 

Function Documentation

◆ TY_❪DocParseStream❫()

int TY_❪DocParseStream❫ ( TidyDocImpl *  impl,
StreamIn *  in 
)

◆ TY_❪TraverseNodeTree❫()

NodeTraversalSignal TY_❪TraverseNodeTree❫ ( TidyDocImpl *  doc,
Node *  node,
NodeTraversalCallBack cb,
void *  propagate 
)