comparison src/coding.h @ 36088:a164f630bf3c

Comment fixes.
author Dave Love <fx@gnu.org>
date Wed, 14 Feb 2001 23:51:03 +0000
parents cb627d09f8c3
children bdd381bc9eb0
comparison
equal deleted inserted replaced
36087:05ef3feab39b 36088:a164f630bf3c
131 131
132 /* If set, designation sequence should be placed at beginning of line 132 /* If set, designation sequence should be placed at beginning of line
133 on output. */ 133 on output. */
134 #define CODING_FLAG_ISO_DESIGNATE_AT_BOL 0x0400 134 #define CODING_FLAG_ISO_DESIGNATE_AT_BOL 0x0400
135 135
136 /* If set, do not encode unsafe charactes on output. */ 136 /* If set, do not encode unsafe characters on output. */
137 #define CODING_FLAG_ISO_SAFE 0x0800 137 #define CODING_FLAG_ISO_SAFE 0x0800
138 138
139 /* If set, extra latin codes (128..159) are accepted as a valid code 139 /* If set, extra latin codes (128..159) are accepted as a valid code
140 on input. */ 140 on input. */
141 #define CODING_FLAG_ISO_LATIN_EXTRA 0x1000 141 #define CODING_FLAG_ISO_LATIN_EXTRA 0x1000
239 variants. */ 239 variants. */
240 coding_type_big5, /* BIG5 coding system for Chinese. */ 240 coding_type_big5, /* BIG5 coding system for Chinese. */
241 coding_type_ccl, /* The coding system of which decoder 241 coding_type_ccl, /* The coding system of which decoder
242 and encoder are written in CCL. */ 242 and encoder are written in CCL. */
243 coding_type_raw_text /* A coding system for a text 243 coding_type_raw_text /* A coding system for a text
244 containing ramdom 8-bit code which 244 containing random 8-bit code which
245 does not require code conversion 245 does not require code conversion
246 except for end-of-line format. */ 246 except for end-of-line format. */
247 }; 247 };
248 248
249 /* Formats of end-of-line. */ 249 /* Formats of end-of-line. */
272 through this structure. 272 through this structure.
273 273
274 The encoder stores the information in this structure when it meets 274 The encoder stores the information in this structure when it meets
275 ESC sequences for composition while encoding codes, then, after all 275 ESC sequences for composition while encoding codes, then, after all
276 text codes are encoded, puts `composition' properties on the text 276 text codes are encoded, puts `composition' properties on the text
277 by refering the structure. 277 by referring to the structure.
278 278
279 The decoder at first stores the information of a text to be 279 The decoder at first stores the information of a text to be
280 decoded, then, while decoding codes, generates ESC sequences for 280 decoded, then, while decoding codes, generates ESC sequences for
281 composition at proper places by refering the structure. */ 281 composition at proper places by referring to the structure. */
282 282
283 struct composition_data 283 struct composition_data
284 { 284 {
285 /* The character position of the first character to be encoded or 285 /* The character position of the first character to be encoded or
286 decoded. START and END (see below) are relative to this 286 decoded. START and END (see below) are relative to this
294 LENGTH is the number of elements for this composition. 294 LENGTH is the number of elements for this composition.
295 295
296 START and END are starting and ending character positions of 296 START and END are starting and ending character positions of
297 the composition relative to `char_offset'. 297 the composition relative to `char_offset'.
298 298
299 METHOD is one of `enum cmposing_status' specifying the way of 299 METHOD is one of `enum composing_status' specifying the way of
300 composition. 300 composition.
301 301
302 COMPONENT is a character or an encoded composition rule. */ 302 COMPONENT is a character or an encoded composition rule. */
303 int data[COMPOSITION_DATA_SIZE]; 303 int data[COMPOSITION_DATA_SIZE];
304 304
305 /* The number of elements in `data' currently used. */ 305 /* The number of elements in `data' currently used. */
306 int used; 306 int used;
307 307
308 /* Pointers to the previous and next structures. When `data' is 308 /* Pointers to the previous and next structures. When `data' is
309 filled up, another structure is allocated and linked in `next'. 309 filled up, another structure is allocated and linked in `next'.
310 The new struture has backward link to this struture in `prev'. 310 The new structure has backward link to this structure in `prev'.
311 The number of chaind structures depends on how many compositions 311 The number of chained structures depends on how many compositions
312 the text being encoded or decoded contains. */ 312 the text being encoded or decoded contains. */
313 struct composition_data *prev, *next; 313 struct composition_data *prev, *next;
314 }; 314 };
315 315
316 /* Macros used for the member `result' of the struct 316 /* Macros used for the member `result' of the struct
328 when the decoding routine encounters an inconsistent eol format. */ 328 when the decoding routine encounters an inconsistent eol format. */
329 #define CODING_MODE_INHIBIT_INCONSISTENT_EOL 0x01 329 #define CODING_MODE_INHIBIT_INCONSISTENT_EOL 0x01
330 330
331 /* If set, the decoding/encoding routines treat the current data as 331 /* If set, the decoding/encoding routines treat the current data as
332 the last block of the whole text to be converted, and do 332 the last block of the whole text to be converted, and do
333 appropriate fisishing job. */ 333 appropriate finishing job. */
334 #define CODING_MODE_LAST_BLOCK 0x02 334 #define CODING_MODE_LAST_BLOCK 0x02
335 335
336 /* If set, it means that the current source text is in a buffer which 336 /* If set, it means that the current source text is in a buffer which
337 enables selective display. */ 337 enables selective display. */
338 #define CODING_MODE_SELECTIVE_DISPLAY 0x04 338 #define CODING_MODE_SELECTIVE_DISPLAY 0x04
688 extern struct coding_system default_buffer_file_coding; 688 extern struct coding_system default_buffer_file_coding;
689 689
690 /* Default coding systems used for process I/O. */ 690 /* Default coding systems used for process I/O. */
691 extern Lisp_Object Vdefault_process_coding_system; 691 extern Lisp_Object Vdefault_process_coding_system;
692 692
693 /* Function to call to force a user to force select a propert coding 693 /* Function to call to force a user to force select a proper coding
694 system. */ 694 system. */
695 extern Lisp_Object Vselect_safe_coding_system_function; 695 extern Lisp_Object Vselect_safe_coding_system_function;
696 696
697 /* Coding system for file names, or nil if none. */ 697 /* Coding system for file names, or nil if none. */
698 extern Lisp_Object Vfile_name_coding_system; 698 extern Lisp_Object Vfile_name_coding_system;