aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (decode_coding_charset): Fix previous change.Kenichi Handa2002-05-221-32/+8
|
* (decode_coding_charset): Adjusted for the change ofKenichi Handa2002-05-221-15/+100
| | | | | | | Fdefine_coding_system_internal. (Fdefine_coding_system_internal): For a coding system of `charset' type, store a list of charset IDs in `charset_attr_charset_valids' element of coding attributes.
* (emacs_mule_char): Fix previous change.Kenichi Handa2002-05-211-1/+0
|
* (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.Kenichi Handa2002-05-211-49/+76
| | | | | | | | | | | | | | | | | | (emacs_mule_char): New arg src. Delete arg `composition'. Caller changed. Handle 2-byte and 3-byte charsets correctly. (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Renamed from DECODE_EMACS_MULE_COMPOSITION_RULE. Caller changed. (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro. (DECODE_EMACS_MULE_21_COMPOSITION): Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation sequence. (decode_coding_emacs_mule): Handle composition correctly. Rewind `src' and `consumed_chars' correctly before calling emacs_mule_char. (DECODE_COMPOSITION_START): Correctly handle the case of altchar and alt&rule composition. (decode_coding_iso_2022): Handle composition correctly. (init_coding_once): Setup emacs_mule_bytes for private charsets.
* (encode_coding_iso_2022): If coding requires safeKenichi Handa2002-05-201-7/+37
| | | | | | | | encoding, produce a character specified by CODING_INHIBIT_CHARACTER_SUBSTITUTION. (encode_coding_sjis): Likewise. (encode_coding_big5): Likewise. (encode_coding_charset): Likewise.
* (Vchar_coding_system_table, Qchar_coding_system):Dave Love2002-05-171-17/+4
| | | | | | Removed. (Fset_coding_system_priority, Fset_coding_system_priority) (Fdefine_coding_system_internal): Doc fix.
* (encode_coding_object): Give correct arguments otKenichi Handa2002-05-141-6/+6
| | | | | | | | pre-write-conversion. Ignore the return value of pre-write-conversion function. Pay attention for the case that pre-write-conversion change the current buffer. If dst_object is Qt, even if coding->src_bytes is zero, allocate at least one byte to coding->destination.
* (decode_coding_object): Move point to coding->dst_pos beforeKenichi Handa2002-05-141-0/+1
| | | | calling post-read-conversion function.
* (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix theKenichi Handa2002-05-141-3/+6
| | | | | handling of charset list. (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
* Doc fixes.Dave Love2002-05-131-13/+14
| | | | | (Fdefine_coding_system_alias): Use names, not symbols, in coding-system-alist.
* (coding_set_source): Delete the local variable beg_byte.Kenichi Handa2002-05-101-6/+9
| | | | | | | (encode_coding_charset): Delete the local variable charset. (Fdefine_coding_system_internal): Likewise. (Fdefine_coding_system_internal): Setup attrs[coding_attr_charset_valids] correctly.
* (coding_inherit_eol_type)Dave Love2002-05-091-0/+3
| | | | | (Fset_terminal_coding_system_internal) (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
* (decode_coding_charset, encode_coding_charset): HandleKenichi Handa2002-05-081-14/+48
| | | | multiple charsets correctly.
* (coding_alloc_by_making_gap): Check the case that theKenichi Handa2002-05-071-53/+68
| | | | | | | | | | | | source and destination are the same correctly. (decode_coding_raw_text): Set coding->consumed_char and coding->consumed to 0. (produce_chars): If coding->chars_at_source is nonzero, update coding->consumed_char and coding->consumed before calling alloc_destination. (Fdefine_coding_system_alias): Register ALIAS in Vcoding_system_alist. (syms_of_coding): Define `no-convesion' coding system at the tail.
* (produce_chars): Set the variable `multibytep' correctly.Kenichi Handa2002-03-111-1/+3
| | | | (decode_coding_gap): Set coding->dst_multibyte correctly.
* (encode_coding_utf_8): Initialize produced_chars to 0.Kenichi Handa2002-03-081-52/+59
| | | | | | | | | | | (decode_coding_utf_16): Fix converting high and low bytes to code-point. (encode_coding_utf_16): Substitute coding->default_char for non-Unicode characters. (decode_coding): Don't call record_insert here. (setup_coding_system): Initialize `surrogate' of coding->spec.utf_16 to 0. (EMIT_ONE_BYTE): Fix for multibyte case.
* * coding.c: Delete unused variables.Kenichi Handa2002-03-051-11/+5
|
* Completely re-written.Kenichi Handa2002-03-011-4815/+5576
|
* (decode_composition_emacs_mule):Richard M. Stallman2002-02-011-0/+4
| | | | Give up if NCOMPONENT gets too large to index `component'.
* (code_convert_region): Don't copy old text if undo disabled.Richard M. Stallman2002-01-111-2/+15
|
* (code_convert_region): Update coding->cmp_data->char_offsetRichard M. Stallman2001-12-171-1/+5
| | | | before calling decode_coding.
* (DECODE_COMPOSITION_END): Fixed a typo in the lastSam Steingold2001-12-171-21/+21
| | | | patch (COMPOSING_P, not COMPOSING).
* (DECODE_COMPOSITION_END): Check for ! COMPOSING (coding)Richard M. Stallman2001-12-171-1/+1
| | | | instead of only for COMPOSITION_DISABLED.
* (setup_coding_system, shrink_encoding_region)Pavel Janík2001-12-091-10/+10
| | | | (Fdecode_sjis_char): Likewise.
* (syms_of_coding) <Qchar_coding_system>: Give it anDave Love2001-11-291-3/+4
| | | | | extra extra slot. (detect_coding_mask): Fix call of detect_coding_iso2022.
* (decode_coding_string): Remove unused variable `gcpro1'.Pavel Janík2001-11-281-1/+0
|
* (syms_of_coding): Doc fix.Richard M. Stallman2001-11-141-2/+2
|
* Doc fix.Pavel Janík2001-11-131-1/+1
|
* (encode_coding): Use precomputed value of `src'.Pavel Janík2001-11-091-4/+1
| | | | | (encode_coding): Remove unused variable `src_end'. (code_convert_region): Remove unused variables `count'.
* Change doc-string comments to `new style' [w/`doc:' keyword].Pavel Janík2001-11-041-264/+267
|
* Update usage of CHECK_ macros (remove unused second argument).Pavel Janík2001-11-021-21/+21
|
* (syms_of_coding): Document that locale-coding-system isEli Zaretskii2001-10-291-1/+2
| | | | used for decoding input on X.
* (Ffind_operation_coding_system): Add usage: string to doc string.Miles Bader2001-10-211-1/+3
|
* Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimentingKen Raeburn2001-10-161-1/+1
| | | | with lisp system changes.
* Use SYMBOL_VALUE/SET_SYMBOL_VALUE macros instead of accessingGerd Moellmann2001-10-051-2/+2
| | | | symbols' value directly.
* (code_convert_region): Handle the multibyte case ifGerd Moellmann2001-07-231-4/+21
| | | | decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
* * coding.c (setup_coding_system): Don't do any designation based on reg_bits ifKen Raeburn2001-07-171-1/+1
| | | | charset is not yet defined.
* (Ffind_coding_systems_region_internal): If safe_codingsStefan Monnier2001-07-121-1/+3
| | | | is t, don't try to append anything to it.
* commentDave Love2001-04-051-3/+3
|
* (Fdetect_coding_region): Fix comments added by the previous change.Kenichi Handa2001-03-081-6/+9
|
* (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.Kenichi Handa2001-03-081-1/+1
|
* (detect_coding_sjis): Do more rigid check.Kenichi Handa2001-03-081-21/+31
| | | | | | | | (detect_coding_big5): Likewise. (decode_coding_sjis_big5): Likewise. (Fdetect_coding_region): Call detect_coding_system with tailing anchor byte `\0' for more rigid detection. (Fdetect_coding_string): Likewise.
* (syms_of_coding): Docstring modified.Kenichi Handa2001-03-051-1/+6
|
* (ccl_coding_driver): If ccl->eight_bit_control is zero,Kenichi Handa2001-02-271-0/+7
| | | | treat the produced bytes as a valid multibyte sequence.
* Doc and message fixes.Dave Love2001-02-141-37/+37
|
* (code_convert_region): After detecting a coding, ifKenichi Handa2001-02-081-1/+12
| | | | | nothing found, set coding->composing to COMPOSITION_NO. (decode_coding_string): Likewise.
* (decode_coding): Set a flag for inhibitingKenichi Handa2001-01-261-5/+22
| | | | | | | | inconsistent eol. (code_convert_region): Always set saved_coding_symbol. (decode_coding_string): Likewise. Update coding->symbol when we encounter a inconsistent eol by the same way as code_convert_region.
* (ccl_coding_driver): Setup ccl->suppress_error.Kenichi Handa2001-01-241-0/+5
| | | | | | (Fset_terminal_coding_system_internal): Set the member suppress_error to 1. (Fset_safe_terminal_coding_system_internal): Likewise.
* Commentary changes.Dave Love2001-01-041-64/+68
| | | | (detect_eol_type_in_2_octet_form): Declare arg big_endian_p.
* (detect_coding_iso2022, setup_coding_system): RemoveEli Zaretskii2001-01-021-14/+5
| | | | | | | | | | | | | | | unused variable `i'. (detect_coding_mask): Remove unused variable `idx'. (detect_coding): Remove unused variable `i'. (ccl_coding_driver): Remove unused variable `result'. (run_pre_post_conversion_on_str): Remove unused variable `prev'. (decode_coding_string): Remove unused variables `to' and `gcpro1'. (encode_coding_string): Remove unused variables `gcpro1' and `saved_coding_symbol'. (Ffind_coding_systems_region_internal): Remove function-local variable args[], leave only the block-local one. (code_convert_region1): Remove unused variable `len'.