HTML Tidy  5.9.15
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 TY_PRIVATE   __attribute__((__visibility__("hidden")))
 
#define TYDYAPPEND(str1, str2)   str1##str2
 

Variables

TY_PRIVATE TidyAllocator TY_❪g_default_allocator❫
 

Macro Definition Documentation

◆ TidyAlloc

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

Wrappers for easy memory allocation using an allocator.

◆ TidyClearMemory

#define TidyClearMemory (   block,
  size 
)    memset((block), 0, (size))

◆ TidyFree

#define TidyFree (   allocator,
  block 
)    ((allocator)->vtbl->free((allocator), (block)))

◆ TidyPanic

#define TidyPanic (   allocator,
  msg 
)    ((allocator)->vtbl->panic((allocator), (msg)))

◆ TidyRealloc

#define TidyRealloc (   allocator,
  block,
  size 
)    ((allocator)->vtbl->realloc((allocator), (block), (size)))

◆ TY_

#define TY_ (   str)    TYDYAPPEND(prvTidy,str)

◆ TY_PRIVATE

#define TY_PRIVATE   __attribute__((__visibility__("hidden")))

◆ TYDYAPPEND

#define TYDYAPPEND (   str1,
  str2 
)    str1##str2

Variable Documentation

◆ TY_❪g_default_allocator❫

TY_PRIVATE TidyAllocator TY_❪g_default_allocator❫
extern