HTML Tidy  5.7.0
The HTACG Tidy HTML Project
forward.h File Reference

Go to the source code of this file.

Macros

#define TidyAlloc(allocator, size)   ((allocator)->vtbl->alloc((allocator), (size)))
 Wrappers for easy memory allocation using an allocator. More...
 
#define TidyClearMemory(block, size)   memset((block), 0, (size))
 
#define TidyFree(allocator, block)   ((allocator)->vtbl->free((allocator), (block)))
 
#define TidyPanic(allocator, msg)   ((allocator)->vtbl->panic((allocator), (msg)))
 
#define TidyRealloc(allocator, block, size)   ((allocator)->vtbl->realloc((allocator), (block), (size)))
 
#define TY_(str)   TYDYAPPEND(prvTidy,str)
 
#define TYDYAPPEND(str1, str2)   str1##str2
 

Variables

TidyAllocator TY_❪g_default_allocator❫
 

Macro Definition Documentation

#define TidyAlloc (   allocator,
  size 
)    ((allocator)->vtbl->alloc((allocator), (size)))

Wrappers for easy memory allocation using an allocator.

#define TidyClearMemory (   block,
  size 
)    memset((block), 0, (size))
#define TidyFree (   allocator,
  block 
)    ((allocator)->vtbl->free((allocator), (block)))
#define TidyPanic (   allocator,
  msg 
)    ((allocator)->vtbl->panic((allocator), (msg)))
#define TidyRealloc (   allocator,
  block,
  size 
)    ((allocator)->vtbl->realloc((allocator), (block), (size)))
#define TY_ (   str)    TYDYAPPEND(prvTidy,str)
#define TYDYAPPEND (   str1,
  str2 
)    str1##str2

Variable Documentation

TidyAllocator TY_❪g_default_allocator❫