root/branches/dmdfe/html.h

Revision 458, 1.1 kB (checked in by Gregor, 2 years ago)

MERGE: DMD 1.011

Line 
1 // Compiler implementation of the D programming language
2 // Copyright (c) 1999-2006 by Digital Mars
3 // All Rights Reserved
4 // written by Walter Bright
5 // http://www.digitalmars.com
6 // License for redistribution is by either the Artistic License
7 // in artistic.txt, or the GNU General Public License in gnu.txt.
8 // See the included readme.txt for details.
9
10 #ifndef DMD_HTML_H
11 #define DMD_HTML_H 1
12
13 struct OutBuffer;
14
15 struct Html
16 {
17     const char *sourcename;
18
19     unsigned char *base;    // pointer to start of buffer
20     unsigned char *end;     // past end of buffer
21     unsigned char *p;       // current character
22     unsigned linnum;        // current line number
23     OutBuffer *dbuf;        // code source buffer
24     int inCode;         // !=0 if in code
25
26
27     Html(const char *sourcename, unsigned char *base, unsigned length);
28
29     void error(const char *format, ...);
30     void extractCode(OutBuffer *buf);
31     void skipTag();
32     void skipString();
33     unsigned char *skipWhite(unsigned char *q);
34     void scanComment();
35     int isCommentStart();
36     void scanCDATA();
37     int isCDATAStart();
38     int charEntity();
39     static int namedEntity(unsigned char *p, int length);
40 };
41
42 #endif
Note: See TracBrowser for help on using the browser.