diff options
Diffstat (limited to 'src/regex.c')
-rw-r--r-- | src/regex.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/regex.c b/src/regex.c index db3f0c16a2d..f6e67afef4c 100644 --- a/src/regex.c +++ b/src/regex.c @@ -1729,12 +1729,9 @@ typedef struct /* Explicit quit checking is needed for Emacs, which uses polling to process input events. */ #ifdef emacs -# define IMMEDIATE_QUIT_CHECK \ - do { \ - if (immediate_quit) QUIT; \ - } while (0) +# define IMMEDIATE_QUIT_CHECK (immediate_quit ? maybe_quit () : (void) 0) #else -# define IMMEDIATE_QUIT_CHECK ((void)0) +# define IMMEDIATE_QUIT_CHECK ((void) 0) #endif /* Structure to manage work area for range table. */ |