HTML Tidy  5.6.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 struct _TidyMessageImpl;
35 typedef struct _TidyMessageImpl TidyMessageImpl;
36 
37 /* @todo: this name isn't very instructive! */
38 struct _Dict;
39 typedef struct _Dict Dict;
40 
41 struct _Attribute;
42 typedef struct _Attribute Attribute;
43 
44 struct _AttVal;
45 typedef struct _AttVal AttVal;
46 
47 struct _Node;
48 typedef struct _Node Node;
49 
50 struct _IStack;
51 typedef struct _IStack IStack;
52 
53 struct _Lexer;
54 typedef struct _Lexer Lexer;
55 
56 extern TidyAllocator TY_(g_default_allocator);
57 
58 /** Wrappers for easy memory allocation using an allocator */
59 #define TidyAlloc(allocator, size) ((allocator)->vtbl->alloc((allocator), (size)))
60 #define TidyRealloc(allocator, block, size) ((allocator)->vtbl->realloc((allocator), (block), (size)))
61 #define TidyFree(allocator, block) ((allocator)->vtbl->free((allocator), (block)))
62 #define TidyPanic(allocator, msg) ((allocator)->vtbl->panic((allocator), (msg)))
63 #define TidyClearMemory(block, size) memset((block), 0, (size))
64 
65 
66 #endif /* __FORWARD_H__ */
Defines a dictionary entry for a single Tidy tag, including all of the relevant information that it r...
Definition: tags.h:77
Definition: tidy-int.h:36
Definition: lexer.h:329
Definition: lexer.h:296
Definition: streamio.h:63
The basic struct for communicating a message within LibTidy.
Definition: tidy-int.h:101
Definition: lexer.h:283
Definition: streamio.h:103
Defines HTML Tidy public API implemented by LibTidy.
Definition: attrs.h:16
Platform specific definitions, specifics, and headers.
Definition: lexer.h:255
#define TY_(str)
Definition: forward.h:23