aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-03-09 13:40:34 +0000
committerGerd Moellmann2000-03-09 13:40:34 +0000
commit80460654af8a30ad86faef024caac091db9026a7 (patch)
treedeea0bede42054f0878e3f360f0c8fa22ecb660f /src
parenteff9591695abd73a21ada3ac939cb880306ba530 (diff)
downloademacs-80460654af8a30ad86faef024caac091db9026a7.tar.gz
emacs-80460654af8a30ad86faef024caac091db9026a7.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog107
1 files changed, 56 insertions, 51 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3d7584433b1..82b285c329f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12000-03-09 Gerd Moellmann <gerd@gnu.org>
2
3 * fns.c (Fy_or_n_p): Cancel busy-cursor.
4
12000-03-08 Stefan Monnier <monnier@cs.yale.edu> 52000-03-08 Stefan Monnier <monnier@cs.yale.edu>
2 6
3 This is a big redesign of failure-stack and register handling, prompted 7 This is a big redesign of failure-stack and register handling, prompted
@@ -10,14 +14,15 @@
10 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber. 14 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
11 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS. 15 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
12 16
13 * regex.c (enum re_opcode_t): Remove jump_past_alt, maybe_pop_jump, 17 * regex.c (enum re_opcode_t): Remove jump_past_alt,
14 push_dummy_failure and dumy_failure_jump. 18 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
15 Add on_failure_jump_(exclusive, loop and smart). 19 on_failure_jump_(exclusive, loop and smart). Also fix the comment
16 Also fix the comment for (start|stop)_memory since they now only take 20 for (start|stop)_memory since they now only take one argument (the
17 one argument (the second has becomes unnecessary). 21 second has becomes unnecessary).
18 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t. 22 (print_partial_compiled_pattern): Adjust for changes in
19 (print_compiled_pattern): Use %ld to printf long ints and flush to make 23 re_opcode_t.
20 debugging a little easier. 24 (print_compiled_pattern): Use %ld to printf long ints and flush to
25 make debugging a little easier.
21 (union fail_stack_elt): Make the integer unsigned. 26 (union fail_stack_elt): Make the integer unsigned.
22 (struct fail_stack_type): Add a `frame' element. 27 (struct fail_stack_type): Add a `frame' element.
23 (INIT_FAIL_STACK): Init `frame' as well. 28 (INIT_FAIL_STACK): Init `frame' as well.
@@ -25,60 +30,60 @@
25 (DEBUG_PUSH, DEBUG_POP): Remove. 30 (DEBUG_PUSH, DEBUG_POP): Remove.
26 (NUM_REG_ITEMS): Remove. 31 (NUM_REG_ITEMS): Remove.
27 (NUM_NONREG_ITEMS): Adjust. 32 (NUM_NONREG_ITEMS): Adjust.
28 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE, TOP_FAILURE_HANDLE): 33 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
29 New macros for the cycle detection. 34 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
30 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT). 35 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
31 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New macros. 36 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
32 (PUSH_FAILURE_POINT): Don't push registers any more. 37 macros.
33 The pattern address pushed is not the destination of the jump 38 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
34 but the source of it instead. 39 address pushed is not the destination of the jump but the source
40 of it instead.
35 (NUM_FAILURE_ITEMS): Remove. 41 (NUM_FAILURE_ITEMS): Remove.
36 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop 42 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
37 registers before the actual failure point). 43 registers before the actual failure point). Don't hardcode any
38 Don't hardcode any meaning for str==NULL anymore. 44 meaning for str==NULL anymore.
39 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE) 45 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
40 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED): Remove. 46 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
47 Remove.
41 (REG_UNSET_VALUE): Use NULL (why not?). 48 (REG_UNSET_VALUE): Use NULL (why not?).
42 (compile_range): Remove declaration since it doesn't exist. 49 (compile_range): Remove declaration since it doesn't exist.
43 (struct compile_stack_elt_t): Remove inner_group_offset. 50 (struct compile_stack_elt_t): Remove inner_group_offset.
44 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove. 51 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
45 (regex_grow_registers): Remove dead code. 52 (regex_grow_registers): Remove dead code.
46 (FIXUP_ALT_JUMP): New macro. 53 (FIXUP_ALT_JUMP): New macro.
47 (regex_compile): Add shy-groups 54 (regex_compile): Add shy-groups Change loops to use
48 Change loops to use on_failure_jump_smart&jump instead of 55 on_failure_jump_smart&jump instead of
49 on_failure_jump&maybe_pop_jump. 56 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
50 Change + loops to eliminate the initial (dummy_failure_)jump. 57 initial (dummy_failure_)jump. Remove c1_base (looks like unused
51 Remove c1_base (looks like unused variable to me). 58 variable to me). Use `jump' instead of `jump_past_alt' and don't
52 Use `jump' instead of `jump_past_alt' and don't bother with 59 bother with push_dummy_failure in alternatives since it is now
53 push_dummy_failure in alternatives since it is now unnecessary. 60 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
54 Use FIXUP_ALT_JUMP. 61 emacs' for (re)allocating the stack.
55 Eliminate a useless `#ifdef emacs' for (re)allocating the stack. 62 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
56 (re_compile_fastmap): Remove dead variables i and num_regs. 63 from loop when bufp->can_be_null rather than jumping to `done'.
57 Exit from loop when bufp->can_be_null rather than jumping to `done'. 64 Avoid jumping backwards so as to ensure termination. Use
58 Avoid jumping backwards so as to ensure termination. 65 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
59 Use PATTERN_STACK_EMPTY and POP_PATTERN_OP. 66 backreferences. Remove dead code in handling of `anychar'.
60 Improved handling of backreferences.
61 Remove dead code in handling of `anychar'.
62 (skip_noops, mutually_exclusive_p): New functions taken from the 67 (skip_noops, mutually_exclusive_p): New functions taken from the
63 handling of `maybe_pop_jump' in re_match_2_internal. 68 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
64 Slightly improve mutually_exclusive_p to handle ".+\n". 69 improve mutually_exclusive_p to handle ".+\n".
65 ((lowest|highest)_active_reg, NO_(LOWEST|HIGHEST)_ACTIVE_REG) 70 (lowest_active_reg, highest_active_reg,
66 Remove. 71 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
67 (re_match_2_internal): Use %p instead of 0x%x when printf'ing ptrs. 72 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
68 Don't SET_REGS_MATCHED anymore. Remove many dead variables. 73 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
69 Push register (in `start_memory') on the stack rather than storing it 74 variables. Push register (in `start_memory') on the stack rather
70 in old_reg(start|end). 75 than storing it in old_reg(start|end). Remove the cycle detection
71 Remove the cycle detection from `stop_memory', replaced by the use 76 from `stop_memory', replaced by the use of on_failure_jump_loop
72 of on_failure_jump_loop for greedy loops. 77 for greedy loops. Add code for the new on_failure_jump_<foo>.
73 Add code for the new on_failure_jump_<foo>. 78 Remove ad-hoc code in `on_failure_jump' to push more registers in
74 Remove ad-hoc code in `on_failure_jump' to push more registers 79 the case of a loop. Take out code from `maybe_pop_jump' into
75 in the case of a loop. 80 separate functions and adapt it to the semantics of
76 Take out code from `maybe_pop_jump' into separate functions and 81 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
77 adapt it to the semantics of `on_failure_jump_smart'. 82 and push_dummy_failure. Remove dummy_failure handling and
78 Remove jump_past_alt, dummy_failure_jump and push_dummy_failure. 83 handling of `failures to jump to on_failure_jump' (this last one
79 Remove dummy_failure handling and handling of `failures to jump 84 was already dead code, it seems).
80 to on_failure_jump' (this last one was already dead code, it seems). 85 (group_match_null_string_p, alt_match_null_string_p)
81 ((group|alt|common_op)_match_null_string_p): Remove. 86 (common_op_match_null_string_p): Remove.
82 87
832000-03-08 Dave Love <fx@gnu.org> 882000-03-08 Dave Love <fx@gnu.org>
84 89