aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2006-01-24 19:14:58 +0000
committerStefan Monnier2006-01-24 19:14:58 +0000
commit1cee1e272f4190ae0b48b7509099832b02ade297 (patch)
tree4a9d7d1692ae67feac6660b94df15770f9993a8f /src
parent243afed719439f865473c90b5bd7638a6ad1a564 (diff)
downloademacs-1cee1e272f4190ae0b48b7509099832b02ade297.tar.gz
emacs-1cee1e272f4190ae0b48b7509099832b02ade297.zip
(IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
(re_match_2_internal) <on_failure_jump, on_failure_jump_smart>: Don't check for quit, since any loop will go through fail or jump.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/regex.c9
2 files changed, 10 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4ee94dff693..f75797b56c6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
4 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
5 Don't check for quit, since any loop will go through fail or jump.
6
12006-01-24 Chong Yidong <cyd@stupidchicken.com> 72006-01-24 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * alloc.c (allocate_string_data): Update next_free immediately, to 9 * alloc.c (allocate_string_data): Update next_free immediately, to
diff --git a/src/regex.c b/src/regex.c
index 4f2683adfb9..60231826380 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -3,7 +3,7 @@
3 internationalization features.) 3 internationalization features.)
4 4
5 Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 5 Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
6 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 6 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 7
8 This program is free software; you can redistribute it and/or modify 8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by 9 it under the terms of the GNU General Public License as published by
@@ -1874,8 +1874,9 @@ typedef struct
1874/* The next available element. */ 1874/* The next available element. */
1875#define COMPILE_STACK_TOP (compile_stack.stack[compile_stack.avail]) 1875#define COMPILE_STACK_TOP (compile_stack.stack[compile_stack.avail])
1876 1876
1877/* Explicit quit checking is only used on NTemacs. */ 1877/* Explicit quit checking is only used on NTemacs and whenever we
1878#if defined WINDOWSNT && defined emacs && defined QUIT 1878 use polling to process input events. */
1879#if defined emacs && (defined WINDOWSNT || defined SYNC_INPUT) && defined QUIT
1879extern int immediate_quit; 1880extern int immediate_quit;
1880# define IMMEDIATE_QUIT_CHECK \ 1881# define IMMEDIATE_QUIT_CHECK \
1881 do { \ 1882 do { \
@@ -5636,7 +5637,6 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
5636 the repetition text and either the following jump or 5637 the repetition text and either the following jump or
5637 pop_failure_jump back to this on_failure_jump. */ 5638 pop_failure_jump back to this on_failure_jump. */
5638 case on_failure_jump: 5639 case on_failure_jump:
5639 IMMEDIATE_QUIT_CHECK;
5640 EXTRACT_NUMBER_AND_INCR (mcnt, p); 5640 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5641 DEBUG_PRINT3 ("EXECUTING on_failure_jump %d (to %p):\n", 5641 DEBUG_PRINT3 ("EXECUTING on_failure_jump %d (to %p):\n",
5642 mcnt, p + mcnt); 5642 mcnt, p + mcnt);
@@ -5652,7 +5652,6 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
5652 then we can use a non-backtracking loop based on 5652 then we can use a non-backtracking loop based on
5653 on_failure_keep_string_jump instead of on_failure_jump. */ 5653 on_failure_keep_string_jump instead of on_failure_jump. */
5654 case on_failure_jump_smart: 5654 case on_failure_jump_smart:
5655 IMMEDIATE_QUIT_CHECK;
5656 EXTRACT_NUMBER_AND_INCR (mcnt, p); 5655 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5657 DEBUG_PRINT3 ("EXECUTING on_failure_jump_smart %d (to %p).\n", 5656 DEBUG_PRINT3 ("EXECUTING on_failure_jump_smart %d (to %p).\n",
5658 mcnt, p + mcnt); 5657 mcnt, p + mcnt);