HTML Tidy  5.4.0
The HTACG Tidy HTML Project
forward.h
Go to the documentation of this file.
1 #ifndef __FORWARD_H__
2 #define __FORWARD_H__
3 
4 /* forward.h -- Forward declarations for major Tidy structures
5 
6  (c) 1998-2007 (W3C) MIT, ERCIM, Keio University
7  See tidy.h for the copyright notice.
8 
9  Avoids many include file circular dependencies.
10 
11  Try to keep this file down to the minimum to avoid
12  cross-talk between modules.
13 
14  Header files include this file. C files include tidy-int.h.
15 
16 */
17 
18 #include "tidyplatform.h"
19 #include "tidy.h"
20 
21 /* Internal symbols are prefixed to avoid clashes with other libraries */
22 #define TYDYAPPEND(str1,str2) str1##str2
23 #define TY_(str) TYDYAPPEND(prvTidy,str)
24 
25 struct _StreamIn;
26 typedef struct _StreamIn StreamIn;
27 
28 struct _StreamOut;
29 typedef struct _StreamOut StreamOut;
30 
31 struct _TidyDocImpl;
32 typedef struct _TidyDocImpl TidyDocImpl;
33 
34 
35 struct _Dict;
36 typedef struct _Dict Dict;
37 
38 struct _Attribute;
39 typedef struct _Attribute Attribute;
40 
41 struct _AttVal;
42 typedef struct _AttVal AttVal;
43 
44 struct _Node;
45 typedef struct _Node Node;
46 
47 struct _IStack;
48 typedef struct _IStack IStack;
49 
50 struct _Lexer;
51 typedef struct _Lexer Lexer;
52 
53 extern TidyAllocator TY_(g_default_allocator);
54 
55 /** Wrappers for easy memory allocation using an allocator */
56 #define TidyAlloc(allocator, size) ((allocator)->vtbl->alloc((allocator), (size)))
57 #define TidyRealloc(allocator, block, size) ((allocator)->vtbl->realloc((allocator), (block), (size)))
58 #define TidyFree(allocator, block) ((allocator)->vtbl->free((allocator), (block)))
59 #define TidyPanic(allocator, msg) ((allocator)->vtbl->panic((allocator), (msg)))
60 #define TidyClearMemory(block, size) memset((block), 0, (size))
61 
62 
63 #endif /* __FORWARD_H__ */
Definition: tidy-int.h:35
Definition: lexer.h:333
Definition: lexer.h:296
Definition: streamio.h:63
Definition: lexer.h:283
Definition: streamio.h:113
Defines HTML Tidy API implemented by tidy library.
Definition: attrs.h:16
Platform specifics
Definition: tags.h:34
Definition: lexer.h:255
#define TY_(str)
Definition: forward.h:23