comparison src/regexp.c @ 29245:b12fd2b3be63 v8.2.5141

patch 8.2.5141: using "volatile int" in a signal handler might be wrong Commit: https://github.com/vim/vim/commit/155f2d1451949d1124bfd6ba9c55be6bd74bab75 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 20 13:38:33 2022 +0100 patch 8.2.5141: using "volatile int" in a signal handler might be wrong Problem: Using "volatile int" in a signal handler might be wrong. Solution: Use "volatile sig_atomic_t".
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Jun 2022 14:45:03 +0200
parents d6f8b784d0f6
children 5ebc561444fe
comparison
equal deleted inserted replaced
29244:95a64cfeb60f 29245:b12fd2b3be63
19 # define BT_REGEXP_DEBUG_LOG 19 # define BT_REGEXP_DEBUG_LOG
20 # define BT_REGEXP_DEBUG_LOG_NAME "bt_regexp_debug.log" 20 # define BT_REGEXP_DEBUG_LOG_NAME "bt_regexp_debug.log"
21 #endif 21 #endif
22 22
23 #ifdef FEAT_RELTIME 23 #ifdef FEAT_RELTIME
24 static int dummy_timeout_flag = 0; 24 static sig_atomic_t dummy_timeout_flag = 0;
25 static volatile int *timeout_flag = &dummy_timeout_flag; 25 static volatile sig_atomic_t *timeout_flag = &dummy_timeout_flag;
26 #endif 26 #endif
27 27
28 /* 28 /*
29 * Magic characters have a special meaning, they don't match literally. 29 * Magic characters have a special meaning, they don't match literally.
30 * Magic characters are negative. This separates them from literal characters 30 * Magic characters are negative. This separates them from literal characters