HTML Tidy  0.1
forward.h
00001 #ifndef __FORWARD_H__
00002 #define __FORWARD_H__
00003 
00004 /* forward.h -- Forward declarations for major Tidy structures
00005 
00006   (c) 1998-2007 (W3C) MIT, ERCIM, Keio University
00007   See tidy.h for the copyright notice.
00008 
00009   CVS Info :
00010 
00011     $Author: arnaud02 $ 
00012     $Date: 2007/02/11 09:45:52 $ 
00013     $Revision: 1.7 $ 
00014 
00015   Avoids many include file circular dependencies.
00016 
00017   Try to keep this file down to the minimum to avoid
00018   cross-talk between modules.
00019 
00020   Header files include this file.  C files include tidy-int.h.
00021 
00022 */
00023 
00024 #include "platform.h"
00025 #include "tidy.h"
00026 
00027 /* Internal symbols are prefixed to avoid clashes with other libraries */
00028 #define TYDYAPPEND(str1,str2) str1##str2
00029 #define TY_(str) TYDYAPPEND(prvTidy,str)
00030 
00031 struct _StreamIn;
00032 typedef struct _StreamIn StreamIn;
00033 
00034 struct _StreamOut;
00035 typedef struct _StreamOut StreamOut;
00036 
00037 struct _TidyDocImpl;
00038 typedef struct _TidyDocImpl TidyDocImpl;
00039 
00040 
00041 struct _Dict;
00042 typedef struct _Dict Dict;
00043 
00044 struct _Attribute;
00045 typedef struct _Attribute Attribute;
00046 
00047 struct _AttVal;
00048 typedef struct _AttVal AttVal;
00049 
00050 struct _Node;
00051 typedef struct _Node Node;
00052 
00053 struct _IStack;
00054 typedef struct _IStack IStack;
00055 
00056 struct _Lexer;
00057 typedef struct _Lexer Lexer;
00058 
00059 extern TidyAllocator TY_(g_default_allocator);
00060 
00061 /** Wrappers for easy memory allocation using an allocator */
00062 #define TidyAlloc(allocator, size) ((allocator)->vtbl->alloc((allocator), (size)))
00063 #define TidyRealloc(allocator, block, size) ((allocator)->vtbl->realloc((allocator), (block), (size)))
00064 #define TidyFree(allocator, block) ((allocator)->vtbl->free((allocator), (block)))
00065 #define TidyPanic(allocator, msg) ((allocator)->vtbl->panic((allocator), (msg)))
00066 #define TidyClearMemory(block, size) memset((block), 0, (size))
00067  
00068 
00069 #endif /* __FORWARD_H__ */