~ubuntu-branches/ubuntu/vivid/tidy/vivid

« back to all changes in this revision

Viewing changes to src/forward.h

  • Committer: Bazaar Package Importer
  • Author(s): Jason Thomas
  • Date: 2008-01-20 21:46:03 UTC
  • mfrom: (0.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080120214603-oqicq5jwr1exrm55
Tags: 20080116cvs-2
* debian/control: build depends on xsltproc
  (closes: #461608)
* debian/tidy.preinst,postinst: add code to move old config file
  (closes: #461623)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
/* forward.h -- Forward declarations for major Tidy structures
5
5
 
6
 
  (c) 1998-2003 (W3C) MIT, ERCIM, Keio University
 
6
  (c) 1998-2007 (W3C) MIT, ERCIM, Keio University
7
7
  See tidy.h for the copyright notice.
8
8
 
9
9
  CVS Info :
10
10
 
11
 
    $Author: creitzel $ 
12
 
    $Date: 2003/03/19 18:37:44 $ 
13
 
    $Revision: 1.3 $ 
 
11
    $Author: arnaud02 $ 
 
12
    $Date: 2007/02/11 09:45:52 $ 
 
13
    $Revision: 1.7 $ 
14
14
 
15
15
  Avoids many include file circular dependencies.
16
16
 
24
24
#include "platform.h"
25
25
#include "tidy.h"
26
26
 
 
27
/* Internal symbols are prefixed to avoid clashes with other libraries */
 
28
#define TYDYAPPEND(str1,str2) str1##str2
 
29
#define TY_(str) TYDYAPPEND(prvTidy,str)
 
30
 
27
31
struct _StreamIn;
28
32
typedef struct _StreamIn StreamIn;
29
33
 
52
56
struct _Lexer;
53
57
typedef struct _Lexer Lexer;
54
58
 
 
59
extern TidyAllocator TY_(g_default_allocator);
55
60
 
 
61
/** Wrappers for easy memory allocation using an allocator */
 
62
#define TidyAlloc(allocator, size) ((allocator)->vtbl->alloc((allocator), (size)))
 
63
#define TidyRealloc(allocator, block, size) ((allocator)->vtbl->realloc((allocator), (block), (size)))
 
64
#define TidyFree(allocator, block) ((allocator)->vtbl->free((allocator), (block)))
 
65
#define TidyPanic(allocator, msg) ((allocator)->vtbl->panic((allocator), (msg)))
 
66
#define TidyClearMemory(block, size) memset((block), 0, (size))
 
67
 
56
68
 
57
69
#endif /* __FORWARD_H__ */