1. 24 Mar, 2000 2 commits
  2. 23 Mar, 2000 2 commits
  3. 22 Mar, 2000 6 commits
    • Jason Rumney's avatar
      *** empty log message *** · ff4df011
      Jason Rumney authored
      ff4df011
    • Ken Raeburn's avatar
      Changes towards better type safety regarding intervals, primarily · 439d5cb4
      Ken Raeburn authored
      regarding the "parent" handle.  These just separate out the different
      usages based on the type of parent (interval vs lisp object); later
      changes will do type checking and enforcement.
      
      	* intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
      	(INT_LISPLIKE): New macro.
      	(NULL_INTERVAL_P): Use it.
      	(INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
      	SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
      	GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
      
      	* alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
      	explicit references to "parent" field of struct interval and
      	associated unclean type conversions.
      	* intervals.c (create_root_interval, root_interval, rotate_right,
      	rotate_left, balance_possible_root_interval, split_interval_right,
      	split_interval_left, interval_start_pos, find_interval,
      	next_interval, previous_interval, update_interval,
      	adjust_intervals_for_insertion, delete_node, delete_interval,
      	adjust_intervals_for_deletion, merge_interval_right,
      	merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
      	copy_intervals_to_string): Likewise.
      	* intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
      	Likewise.
      	* syntax.c (update_syntax_table): Likewise.
      
      	* intervals.c (reproduce_tree_obj): New function, like
      	reproduce_tree but takes a Lisp_Object for the parent.  Declare
      	with prototype.
      	(graft_intervals_into_buffer): Use it when appropriate.
      	(reproduce_tree): Declare with prototype.
      	(balance_possible_root_interval): Check that the parent is a lisp
      	object before trying to examine its type.
      439d5cb4
    • Gerd Moellmann's avatar
      *** empty log message *** · ee1c5b21
      Gerd Moellmann authored
      ee1c5b21
    • Stefan Monnier's avatar
      (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default · 1fb352e0
      Stefan Monnier authored
      definitions for non-Emacs compilation.
      (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
      outside of `#ifdef emacs'.
      (print_partial_compiled_pattern): Update.
      (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
      (re_compile_fastmap): Merge handling of charset and charset_not (for
      emacs and non-emacs compilation as well).
      Similarly for (not)categoryspec and (not)syntaxspec.
      Don't use the fastmap when reaching `anychar' since the added
      complexity is not justified.
      (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
      and (not)syntaxspec.  Merge (not)categoryspec.
      1fb352e0
    • Kenichi Handa's avatar
      [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P, · ff1a0d8e
      Kenichi Handa authored
      FACE_FOR_CHAR): Define them differently for the configuration of
      --without-x.
      ff1a0d8e
    • Kenichi Handa's avatar
      *** empty log message *** · fdaa1f77
      Kenichi Handa authored
      fdaa1f77
  4. 21 Mar, 2000 4 commits
  5. 20 Mar, 2000 1 commit
  6. 19 Mar, 2000 3 commits
    • Stefan Monnier's avatar
      (RE_STRING_CHAR): New macro. · 4e8a9132
      Stefan Monnier authored
      (GET_CHAR_AFER_2): Remove.
      (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
      (enum re_opcode_t): Remove on_failure_jump_exclusive.
      (print_partial_compiled_pattern, re_compile_fastmap)
      (re_match_2_internal): Remove on_failure_jump_exclusive.
      (regex_compile): Turn optimizable P+ loops into PP*, so that the
      optimization only need to work for * (ie. can use of_keep_string_jump).
      Remove the special case for .*\n since it is now covered by the general
      optimization.
      (re_search_2): Don't bother with `room'.
      (skip_one_char): New function.
      (skip_noops): Simplify since `memory' is not needed any more.
      (mutually_exclusive_p): Restructure slightly to use `switch' and
      add handling for "all" remaining cases.
      (re_match_2_internal): Change on_failure_jump_smart to use
      on_failure_keep_string_jump (and redirect the end-of-loop jump)
      rather than on_failure_jump_exclusive.
      4e8a9132
    • Gerd Moellmann's avatar
      2136fdd4
    • Richard M. Stallman's avatar
      *** empty log message *** · e53ae11c
      Richard M. Stallman authored
      e53ae11c
  7. 18 Mar, 2000 1 commit
  8. 17 Mar, 2000 1 commit
  9. 16 Mar, 2000 3 commits
    • Gerd Moellmann's avatar
      *** empty log message *** · 83488cce
      Gerd Moellmann authored
      83488cce
    • Gerd Moellmann's avatar
      *** empty log message *** · 1fa28578
      Gerd Moellmann authored
      1fa28578
    • Stefan Monnier's avatar
      (re_match_2): Fix string shortening (to fit `stop') to make sure · 99633e97
      Stefan Monnier authored
      POINTER_TO_OFFSET gives the same value before and after PREFETCH.
      Use `dfail' to guarantee "atomic" matching.
      (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
      (debug): Now only active if > 0 rather than if != 0.
      (DEBUG_*): Update for the new meaning of `debug'.
      (print_partial_compiled_pattern): Add missing `succeed' case.
      Use CHARSET_* macros in the charset(_not) branch.
      Fix off-by-two bugs in `succeed_n', `jump_n' and `set_number_at'.
      (store_op1, store_op2, insert_op1, insert_op2)
      (at_begline_loc_p, at_endline_loc_p): Add prototype.
      (group_in_compile_stack): Move to after its arg's types are declared
      and add a prototype.
      (PATFETCH): Define in terms of PATFETCH_RAW.
      (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
      (QUIT): Redefine as a nop except for NTemacs.
      (regex_compile): Handle intervals {,M} as if it was {0,M}.
      Fix indentation of the greedy-op and shy-group code.
      (at_(beg|end)line_loc_p): Fix argument's types.
      (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
      (re_search_2): Use POS_AS_IN_BUFFER.  Simplify `room' computation.
      (MATCHING_IN_FIRST_STRING): Remove.
      (re_match_2): Use POS_AS_IN_BUFFER.
      Ifdef out failure_stack_ptr to shut up gcc.
      Use FIRST_STRING_P and POINTER_TO_OFFSET.
      Use QUIT unconditionally.
      99633e97
  10. 15 Mar, 2000 1 commit
  11. 14 Mar, 2000 3 commits
  12. 13 Mar, 2000 2 commits
  13. 12 Mar, 2000 6 commits
  14. 09 Mar, 2000 1 commit
  15. 08 Mar, 2000 4 commits