1. 13 Oct, 2000 1 commit
  2. 07 Sep, 2000 3 commits
  3. 23 Aug, 2000 1 commit
  4. 18 Aug, 2000 2 commits
  5. 16 Aug, 2000 2 commits
    • Kenichi Handa's avatar
      (encode_coding): Fix the bug of not flushing ISO escape sequence at · bb10be8b
      Kenichi Handa authored
      the end of the source block.
      bb10be8b
    • Kenichi Handa's avatar
      (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted. · 73be902c
      Kenichi Handa authored
      (conversion_buffer, conversion_buffer_size): Variables deleted.
      (get_conversion_buffer): Function deleted.
      (struct conversion_buffer): New structure.
      (MAX_ALLOCA): New macro.
      (allocate_conversion_buffer): New macro.
      (extend_conversion_buffer, free_conversion_buffer): New functions.
      (ccl_coding_driver): Set coding->result.
      (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
      this is the last block of source.
      (encode_coding): Likewise.  Handle the source block as the last
      one only when the whole source text is consumed.
      (decode_coding_string): Handle the case that the output buffer is
      too small to decode the whole source text.  Use
      allocate_conversion_buffer, extend_conversion_buffer and
      free_conversion_buffer, not get_conversion_buffer.
      (encode_coding_string): Likewise.
      (init_coding): Function deleted.
      (init_coding_once): Delete code to initialize
      conversion_buffer_size.
      73be902c
  6. 11 Aug, 2000 1 commit
  7. 08 Aug, 2000 1 commit
  8. 04 Aug, 2000 2 commits
  9. 27 Jul, 2000 1 commit
    • Kenichi Handa's avatar
      (Qsafe_charsets): This variable deleted. · 05e6f5dc
      Kenichi Handa authored
      (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
      variables.
      (coding_safe_chars): New function.
      (CODING_SAFE_CHAR_P): New macro.
      (CHARSET_OK): New arg C.  Call CODING_SAFE_CHAR_P instead of
      checking safe_charsets member of the coding system.  Caller
      changed.
      (detect_coding_iso2022): New local variable safe_chars.
      (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
      safe_charsets member of the coding system.
      (decode_coding_iso2022): New local variable safe_chars.
      (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
      (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
      (ENCODE_ISO_CHARACTER): Arguments changed.  Caller changed.
      (ENCODE_UNSAFE_CHARACTER): New macro.
      (encode_coding_iso2022): New local variable safe_chars.  Check
      unsafe chars.
      (setup_coding_system): Delete the code to initialize
      coding->safe_charses
      (intersection, find_safe_codings): New functions.
      (Ffind_coding_systems_region_internal): New function.
      (syms_of_coding): Defsubr it.  Initialize Qsafe_chars,
      Qsafe_cding_system.  Make Vchar_coding_system_table a Lisp
      variable and initialize it.
      05e6f5dc
  10. 23 Jul, 2000 1 commit
  11. 19 Jul, 2000 1 commit
  12. 18 Jul, 2000 2 commits
  13. 14 Jul, 2000 1 commit
  14. 30 Jun, 2000 1 commit
  15. 26 Jun, 2000 1 commit
  16. 23 Jun, 2000 1 commit
  17. 19 Jun, 2000 1 commit
    • Kenichi Handa's avatar
      (setup_coding_system) <4>: Reset member `cr_carryover'. · aaaf0b1e
      Kenichi Handa authored
      (ccl_coding_driver): On encoding, initialize ccl->eol_type.
      (decode_eol_post_ccl): New function.
      (decode_coding): Don't detect EOL format here for CCL based coding
      systems.
      (decode_coding) <coding_type_ccl>: Handle carryovered CR.  Call
      decode_eol_post_ccl after running the CCL program.
      (code_convert_region): Don't detect EOL format here for CCL based
      coding systems.
      (decode_coding_string): Likewise.
      aaaf0b1e
  18. 15 Jun, 2000 1 commit
  19. 30 May, 2000 1 commit
  20. 29 May, 2000 1 commit
  21. 26 May, 2000 1 commit
  22. 25 May, 2000 3 commits
  23. 23 May, 2000 1 commit
  24. 19 May, 2000 1 commit
    • Kenichi Handa's avatar
      (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->resutl to · b73bfc1c
      Kenichi Handa authored
      CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
      (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
      EMIT_BYTES): New macros.
      (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
      DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
      macros deleted.
      (CHECK_CODE_RANGE_A0_FF): This macro deleted.
      (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
      check the validity of multibyte sequence.
      (decode_coding_emacs_mule): New function.
      (encode_coding_emacs_mule): New macro.
      (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
      the source.
      (DECODE_ISO_CHARACTER): Just return a character code.
      (DECODE_COMPOSITION_START): Set coding->result instead of result.
      (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
      EMIT_CHAR to produced decoded characters.  Exit the loop only by
      macros ONE_MORE_BYTE or EMIT_CHAR.  Don't handle the case of last
      block here.
      (ENCODE_ISO_CHARACTER): Don't translate character here.  Produce
      only position codes for an invalid character.
      (encode_designation_at_bol): Return new destination pointer.  5th
      arg DSTP is changed to DST.
      (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
      from the source by ONE_MORE_CHAR.  Don't handle the case of last
      block here.
      (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
      macros deleted.
      (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
      detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
      TWO_MORE_BYTES to fetch a byte from the source.
      (encode_eol): Pay attention to coding->src_multibyte.
      (detect_coding, detect_eol): Preserve members src_multibyte and
      dst_multibyte.
      (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
      (encoding_buffer_size): Set magnification to 3 for all coding
      systems that require encoding.
      (ccl_coding_driver): For decoding, be sure that the result is
      valid multibyte sequence.
      (decode_coding): Initialize coding->errors and coding->result.
      For emacs-mule, call decode_coding_emacs_mule.  For no-conversion
      and raw-text, always call decode_eol.  Handle the case of last
      block here.  If not coding->dst_multibyte, convert the resulting
      sequence to unibyte.
      (encode_coding): Initialize coding->errors and coding->result.
      For emacs-mule, call encode_coding_emacs_mule.  For no-conversion
      and raw-text, always call encode_eol.  Handle the case of last
      block here.
      (shrink_decoding_region, shrink_encoding_region): Detect cases
      that we can't skip data more rigidly.
      (code_convert_region): Setup src_multibyte and dst_multibyte
      members of coding.  For decoding, if the buffer is multibyte,
      convert the source sequence to unibyte in advance.  For encoding,
      if the buffer is multibyte, convert the resulting sequence to
      multibyte afterward.
      (run_pre_post_conversion_on_str): New function.
      (code_convert_string): Deleted and divided into the following two.
      (decode_coding_string, encode_coding_string): New functions.
      (code_convert_string1, code_convert_string_norecord): Call one of
      above.
      (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
      MAKE_NON_ASCII_CHAR.
      (Fset_terminal_coding_system_internal,
      Fset_safe_terminal_coding_system_internal): Setup src_multibyte
      and dst_multibyte members.
      (init_coding_once): Initialize iso_code_class with new enum
      ISO_control_0 and ISO_control_1.
      b73bfc1c
  25. 08 Apr, 2000 1 commit
  26. 07 Mar, 2000 1 commit
    • Kenichi Handa's avatar
      Add comments on coding-category-utf-8, · fa42c37f
      Kenichi Handa authored
      coding-category-utf-16-be, and coding-category-utf-16-le.
      (coding_category_name): Include "coding-category-utf-8",
      "coding-category-utf-16-be", and "coding-category-utf-16-le".
      (UTF_8_1_OCTET_P) (UTF_8_EXTRA_OCTET_P) (UTF_8_2_OCTET_LEADING_P)
      (UTF_8_3_OCTET_LEADING_P) (UTF_8_4_OCTET_LEADING_P)
      (UTF_8_5_OCTET_LEADING_P) (UTF_8_6_OCTET_LEADING_P): New macros.
      (detect_coding_utf_8): New function.
      (UTF_16_INVALID_P) (TF_16_HIGH_SURROGATE_P)
      (UTF_16_LOW_SURROGATE_P): New macros.
      (detect_coding_utf_16): New function.
      (detect_coding_mask): Fix bug of returning wrong mask bits in the
      case that detect_coding_XXX returns a mask not set in
      priorities[i].
      (detect_eol_type_in_2_octet_form): New function.
      (detect_eol): If cooding->category_idx is for UTF-16, call
      detect_eol_type_in_2_octet_form instead of dectect_eol_type.
      (detect_coding_system): Don't include `nil' coding-system in the
      result.
      (Fupdate_coding_systems_internal): Update all coding-categories.
      fa42c37f
  27. 02 Mar, 2000 1 commit
  28. 11 Jan, 2000 1 commit
  29. 15 Dec, 1999 2 commits
    • Kenichi Handa's avatar
      (code_convert_region): Fix the secoding arg to · e19539f1
      Kenichi Handa authored
      update_compositions.
      e19539f1
    • Kenichi Handa's avatar
      Include composite.h. · ec6d2bb8
      Kenichi Handa authored
      (DECODE_CHARACTER_ASCII): Don't handle composition here.
      (DECODE_CHARACTER_DIMENSION1): Likewise.  Don't check the validity
      of multibyte code here.
      (DECODE_CHARACTER_DIMENSION2): Likewise.
      (detect_coding_emacs_mule): Change the case label from
      EMACS_leading_code_composition to 0x80.
      (detect_coding_iso2022): Handle new composition sequence.
      (DECODE_ISO_CHARACTER): Likewise.
      (check_composing_code): Deleted.
      (coding_allocate_composition_data): New function.
      (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
      (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
      (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
      (decode_coding_iso2022): Handle new composition sequence.
      (ENCODE_ISO_CHARACTER): Don't check composition here.
      (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
      (ENCODE_COMPOSITION_NO_RULE_START)
      (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
      (ENCODE_COMPOSITION_END): Handle new composition sequence.
      (ENCODE_COMPOSITION_FAKE_START): New macro.
      (encode_coding_iso2022): Handle new composition sequence.
      (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
      (encode_coding_sjis_big5): Ignore composition.
      (setup_coding_system): Initialize new members of struct
      coding_system.  Enable composition only when the coding system has
      `composition' property t.
      (coding_free_composition_data) (coding_adjust_composition_offset)
      (coding_save_composition) (coding_restore_composition): New
      functions.
      (code_convert_region): Call coding_save_composition for encoding
      and coding_allocate_composition_data for decoding.  Don't skip
      ASCII characters if we handle composition on encoding.  Call
      signal_after_change with Check_BORDER.
      (code_convert_string): Call coding_save_composition for encoding
      and coding_allocate_composition_data for decoding.  Don't skip
      ASCII characters if we handle composition on encoding.
      (code_convert_string1): Set Vlast_coding_system_used after calling
      code_convert_string.
      (code_convert_string_norecord): Disable composition.
      (Fset_terminal_coding_system_internal): Likewise.
      (Fset_safe_terminal_coding_system_internal): Likewise.
      (Fset_keyboard_coding_system_internal): Likewise.
      (init_coding_once): Set emacs_code_class[0x80] to
      EMACS_invalid_code.
      ec6d2bb8
  30. 07 Dec, 1999 1 commit
    • Stefan Monnier's avatar
      * editfns.c (Fdelete_and_extract_region): New function. · 7dae4502
      Stefan Monnier authored
      (syms_of_editfns): register it.
      * insdel.c (del_range): update del_range_1 call.
      (del_range_1, del_range_2): Add a ret_string argument to
      request that the deleted text be returned.
      (del_range_byte, del_range_both): Update del_range_2 call.
      * lisp.h (del_range_1, del_range_2): change prototype
      * casefiddle.c (casify_region): Update del_range_1 call.
      * coding.c (code_convert_region): Update del_range_2 call.
      * fileio.c (Finsert_file_contents): Update del_range_2 call.
      7dae4502
  31. 22 Nov, 1999 1 commit
    • Paul Eggert's avatar
      * callproc.c (strerror): Remove decl. · ca9c0567
      Paul Eggert authored
      * fileio.c (strerror): Likewise.
      * process.c (strerror): Likewise.
      * emacs.c (strerror): Likewise.
      (Vsystem_messages_locale): Renamed from Vmessages_locale.
      All uses changed.
      (Vprevious_system_messages_locale): Likewise, from
      Vprevious_messages_locale.
      (Vsystem_time_locale): Likewise, from Vtime_locale.
      (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
      (ABORT_RETURN_TYPE): New macro.
      (abort): Return type is now ABORT_RETURN_TYPE.
      (main): Always invoke init_signals, even if POSIX_SIGNALS is not
      defined.
      (syms_of_emacs): messages-locale -> system-messages-locale,
      previous-messages-locale -> previous-system-messages-locale,
      time-locale -> system-time-locale,
      previous-time-locale -> previous-system-time-locale.
      
      * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
      (const): Do not define; that's config.h's job.
      (<limits.h>): Include if HAVE_LIMITS_H is defined.
      (CHAR_BIT): Move test for definedness outside of limits.h condition.
      (<stddef.h>): Include if STDC_HEADERS is defined.
      (FREE_RETURN_TYPE): New macro.
      (free): Return type is now FREE_RETURN_TYPE.
      
      * lisp.h (synchronize_system_time_locale): Renamed from
      synchronize_time_locale.  All uses changed.
      (synchronize_system_messages_locale): Likewise, from
      synchronize_messages_locale.
      
      * process.c (sys_siglist): Remove.
      
      * syntax.c (scan_sexps_forward): Use abort, not assert.
      
      * sysdep.c (my_sys_siglist): New var.
      (sys_siglist): New macro.  Remove old initialized vars of same name.
      (init_signals): Initialize sys_siglist.
      
      * xfns.c (abort): Remove decl; stdlib.h now does this.
      ca9c0567