about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTML.h
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/HTML.h')
-rw-r--r--WWW/Library/Implementation/HTML.h159
1 files changed, 79 insertions, 80 deletions
diff --git a/WWW/Library/Implementation/HTML.h b/WWW/Library/Implementation/HTML.h
index bca7c41b..be492b28 100644
--- a/WWW/Library/Implementation/HTML.h
+++ b/WWW/Library/Implementation/HTML.h
@@ -7,18 +7,17 @@
 #ifndef HTML_H
 #define HTML_H
 
-#include "UCDefs.h"
-#include "UCAux.h"
-
 #ifndef HTUTILS_H
 #include "HTUtils.h"
 #endif /* HTUTILS_H */
+#include "UCDefs.h"
+#include "UCAux.h"
 #include "HTAnchor.h"
 #include "HTMLDTD.h"
 
 #ifdef SHORT_NAMES
-#define HTMLPresentation        HTMLPren
-#define HTMLPresent             HTMLPres
+#define HTMLPresentation	HTMLPren
+#define HTMLPresent		HTMLPres
 #endif /* SHORT_NAMES */
 
 extern CONST HTStructuredClass HTMLPresentation;
@@ -30,30 +29,30 @@ extern CONST HTStructuredClass HTMLPresentation;
 */
 
 typedef struct _stack_element {
-        HTStyle *	style;
+	HTStyle *	style;
 	int		tag_number;
 } stack_element;
 
 /*		HTML Object
 **		-----------
 */
-#define MAX_NESTING 800		/* Should be checked by parser */
+#define MAX_NESTING 800 	/* Should be checked by parser */
 
 struct _HTStructured {
-    CONST HTStructuredClass * 	isa;
-    HTParentAnchor * 		node_anchor;
-    HText * 			text;
+    CONST HTStructuredClass *	isa;
+    HTParentAnchor *		node_anchor;
+    HText *			text;
 
-    HTStream*			target;			/* Output stream */
+    HTStream*			target; 		/* Output stream */
     HTStreamClass		targetClass;		/* Output routines */
 
     HTChildAnchor *		CurrentA;	/* current HTML_A anchor */
-    int				CurrentANum;	/* current HTML_A number */
+    int 			CurrentANum;	/* current HTML_A number */
     char *			base_href;	/* current HTML_BASE href */
     char *			map_address;	/* current HTML_MAP address */
 
-    HTChunk 			title;		/* Grow by 128 */
-    HTChunk			object;		/* Grow by 128 */
+    HTChunk			title;		/* Grow by 128 */
+    HTChunk			object; 	/* Grow by 128 */
     BOOL			object_started;
     BOOL			object_declare;
     BOOL			object_shapes;
@@ -67,40 +66,40 @@ struct _HTStructured {
     char *			object_codebase;
     char *			object_codetype;
     char *			object_name;
-    HTChunk			option;		/* Grow by 128 */
+    HTChunk			option; 	/* Grow by 128 */
     BOOL			first_option;	/* First OPTION in SELECT? */
     char *			LastOptionValue;
     BOOL			LastOptionChecked;
     BOOL			select_disabled;
     HTChunk			textarea;	/* Grow by 128 */
     char *			textarea_name;
-    int				textarea_name_cs;
+    int 			textarea_name_cs;
     char *			textarea_accept_cs;
     char *			textarea_cols;
     int 			textarea_rows;
-    int				textarea_disabled;
+    int 			textarea_disabled;
     char *			textarea_id;
     HTChunk			math;		/* Grow by 128 */
     HTChunk			style_block;	/* Grow by 128 */
-    HTChunk			script;		/* Grow by 128 */
+    HTChunk			script; 	/* Grow by 128 */
 
     /*
-     *  Used for nested lists. - FM
+     *	Used for nested lists. - FM
      */
-    int		List_Nesting_Level;	/* counter for list nesting level */
-    int 	OL_Counter[12];		/* counter for ordered lists */
-    char 	OL_Type[12];		/* types for ordered lists */
+    int 	List_Nesting_Level;	/* counter for list nesting level */
+    int 	OL_Counter[12]; 	/* counter for ordered lists */
+    char	OL_Type[12];		/* types for ordered lists */
     int 	Last_OL_Count;		/* last count in ordered lists */
-    char 	Last_OL_Type;		/* last type in ordered lists */
+    char	Last_OL_Type;		/* last type in ordered lists */
 
-    int				Division_Level;
+    int 			Division_Level;
     short			DivisionAlignments[MAX_NESTING];
-    int				Underline_Level;
-    int				Quote_Level;
+    int 			Underline_Level;
+    int 			Quote_Level;
 
     BOOL			UsePlainSpace;
     BOOL			HiddenValue;
-    int				lastraw;
+    int 			lastraw;
 
     char *			comment_start;	/* for literate programming */
     char *			comment_end;
@@ -109,15 +108,15 @@ struct _HTStructured {
     BOOL			style_change;
     HTStyle *			new_style;
     HTStyle *			old_style;
-    int				current_default_alignment;
+    int 			current_default_alignment;
     BOOL			in_word;  /* Have just had a non-white char */
-    stack_element 	stack[MAX_NESTING];
-    stack_element 	*sp;		/* Style stack pointer */
+    stack_element	stack[MAX_NESTING];
+    stack_element	*sp;		/* Style stack pointer */
     BOOL		stack_overrun;	/* Was MAX_NESTING exceeded? */
-    int			skip_stack; /* flag to skip next style stack operation */
+    int 		skip_stack; /* flag to skip next style stack operation */
 
     /*
-    **  Track if we are in an anchor, paragraph, address, base, etc.
+    **	Track if we are in an anchor, paragraph, address, base, etc.
     */
     BOOL		inA;
     BOOL		inAPPLET;
@@ -145,41 +144,41 @@ struct _HTStructured {
     BOOL		needBoldH;
 
     /*
-    **  UCI and UCLYhndl give the UCInfo and charset registered for
-    **  the HTML parser in the node_anchor's UCStages structure.  It
-    **  indicates what is fed to the HTML parser as the stream of character
-    **  data (not necessarily tags and attributes).  It should currently
-    **  always be set to be the same as UCI and UCLhndl for the HTEXT stage
-    **  in the node_anchor's UCStages structure, since the HTML parser sends
-    **  its input character data to the output without further charset
-    **  translation.
+    **	UCI and UCLYhndl give the UCInfo and charset registered for
+    **	the HTML parser in the node_anchor's UCStages structure.  It
+    **	indicates what is fed to the HTML parser as the stream of character
+    **	data (not necessarily tags and attributes).  It should currently
+    **	always be set to be the same as UCI and UCLhndl for the HTEXT stage
+    **	in the node_anchor's UCStages structure, since the HTML parser sends
+    **	its input character data to the output without further charset
+    **	translation.
     */
-    LYUCcharset	*	UCI;
-    int			UCLYhndl;
+    LYUCcharset *	UCI;
+    int 		UCLYhndl;
     /*
-    **  inUCI and inUCLYhndl indicate the UCInfo and charset which the
-    **  HTML parser treats at the input charset.  It is normally set
-    **  to the UCI and UCLhndl for the SGML parser in the node_anchor's
-    **  UCStages structure (which may be a dummy, based on the MIME
-    **  parser's UCI and UCLhndl in that structure, when we are handling
-    **  a local file or non-http(s) gateway).  It could be changed
-    **  temporarily by the HTML parser, for conversions of attribute
-    **  strings, but should be reset once done. - FM
+    **	inUCI and inUCLYhndl indicate the UCInfo and charset which the
+    **	HTML parser treats at the input charset.  It is normally set
+    **	to the UCI and UCLhndl for the SGML parser in the node_anchor's
+    **	UCStages structure (which may be a dummy, based on the MIME
+    **	parser's UCI and UCLhndl in that structure, when we are handling
+    **	a local file or non-http(s) gateway).  It could be changed
+    **	temporarily by the HTML parser, for conversions of attribute
+    **	strings, but should be reset once done. - FM
     */
-    LYUCcharset	*	inUCI;
-    int			inUCLYhndl;
+    LYUCcharset *	inUCI;
+    int 		inUCLYhndl;
     /*
-    **  outUCI and outUCLYhndl indicate the UCInfo and charset which
-    **  the HTML parser treats as the output charset.  It is normally
-    **  set to its own UCI and UCLhndl.  It could be changed for
-    **  conversions of attribute strings, but should be reset once
-    **  done. - FM
+    **	outUCI and outUCLYhndl indicate the UCInfo and charset which
+    **	the HTML parser treats as the output charset.  It is normally
+    **	set to its own UCI and UCLhndl.  It could be changed for
+    **	conversions of attribute strings, but should be reset once
+    **	done. - FM
     */
-    LYUCcharset	*	outUCI;
-    int			outUCLYhndl;
+    LYUCcharset *	outUCI;
+    int 		outUCLYhndl;
     /*
-    **  T holds the transformation rules for conversions of strings
-    **  between the input and output charsets by the HTML parser. - FM
+    **	T holds the transformation rules for conversions of strings
+    **	between the input and output charsets by the HTML parser. - FM
     */
     UCTransParams	T;
 
@@ -207,32 +206,32 @@ extern int HTML_put_entity PARAMS((HTStructured *me, int entity_number));
 **  HTConverter to present HTML
 */
 extern HTStream* HTMLToPlain PARAMS((
-        HTPresentation *        pres,
-        HTParentAnchor *        anchor,
-        HTStream *              sink));
+	HTPresentation *	pres,
+	HTParentAnchor *	anchor,
+	HTStream *		sink));
 
 extern HTStream* HTMLToC PARAMS((
-        HTPresentation *        pres,
-        HTParentAnchor *        anchor,
-        HTStream *              sink));
+	HTPresentation *	pres,
+	HTParentAnchor *	anchor,
+	HTStream *		sink));
 
 extern HTStream* HTMLPresent PARAMS((
-        HTPresentation *        pres,
-        HTParentAnchor *        anchor,
-        HTStream *              sink));
+	HTPresentation *	pres,
+	HTParentAnchor *	anchor,
+	HTStream *		sink));
 
 extern HTStructured* HTML_new PARAMS((
-        HTParentAnchor * anchor,
-        HTFormat        format_out,
-        HTStream *      target));
+	HTParentAnchor * anchor,
+	HTFormat	format_out,
+	HTStream *	target));
 
 /*
 **  Names for selected internal representations.
 */
 typedef enum _HTMLCharacterSet {
-        HTML_ISO_LATIN1,
-        HTML_NEXT_CHARS,
-        HTML_PC_CP950
+	HTML_ISO_LATIN1,
+	HTML_NEXT_CHARS,
+	HTML_PC_CP950
 } HTMLCharacterSet;
 
 /*
@@ -243,11 +242,11 @@ typedef enum _HTMLCharacterSet {
 **  and leaves the document unloaded.
 **
 **  On entry,
-**      sink    is a stream to the output device if any
-**      number  is the HTTP error number
-**      message is the human readable message.
+**	sink	is a stream to the output device if any
+**	number	is the HTTP error number
+**	message is the human readable message.
 **  On exit,
-**      a retrun code like HT_LOADED if object exists else 60; 0
+**	a retrun code like HT_LOADED if object exists else 60; 0
 */
 extern int HTLoadError PARAMS((
 	HTStream *	sink,
ter Anselm R. Garbe <garbeam@wmii.de> 2006-07-15 17:19:19 +0200 sanitized other stuff' href='/acidbong/suckless/dwm/commit/main.c?h=1.8&id=c09bf8da071e05e2c1d714f0d31d41fe944bc11b'>c09bf8d ^
3399650 ^



c09bf8d ^
3399650 ^






c0705ee ^
3399650 ^









e6cbe9c ^
3399650 ^

adaa28a ^

1076f2b
adaa28a ^
1076f2b

dba2306 ^
bf35794 ^


dba2306 ^


4641aa2 ^
dba2306 ^
dc5d967 ^





dba2306 ^

dc5d967 ^
dba2306 ^
4641aa2 ^

1076f2b


0e5c819 ^
1076f2b
dc5d967 ^
4970ef9 ^
1076f2b
439e15d ^
dc5d967 ^
1076f2b
4970ef9 ^


1076f2b
4970ef9 ^

1076f2b


dba2306 ^
1076f2b




dba2306 ^

1076f2b

f60c597 ^
1076f2b
dba2306 ^

1076f2b
f60c597 ^
dba2306 ^
1076f2b

c09bf8d ^





1076f2b
1076f2b




29355bd ^
1076f2b
39677ec ^
c0705ee ^



39677ec ^
9cd686c ^



83d2390 ^
9cd686c ^

6458d72 ^
9cd686c ^









eb756ee ^

c0705ee ^
eb756ee ^
9cd686c ^
83d2390 ^
dc5d967 ^
439e15d ^


9cd686c ^
dba2306 ^
1076f2b
0e5c819 ^
e3fd306 ^
0e5c819 ^
4970ef9 ^
5b44976 ^
0e5c819 ^





dba2306 ^
0e5c819 ^
6475be9 ^





0e5c819 ^
4970ef9 ^





c0705ee ^
0e5c819 ^

439e15d ^

1076f2b




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288