comparison src/memline.c @ 27752:c1d1639b52dd v8.2.4402

patch 8.2.4402: missing parenthesis may cause unexpected problems Commit: https://github.com/vim/vim/commit/ae6f1d8b14c2f63811ee83ef14e32086fb3e9b83 Author: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Wed Feb 16 19:24:07 2022 +0000 patch 8.2.4402: missing parenthesis may cause unexpected problems Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes https://github.com/vim/vim/issues/9788)
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Feb 2022 20:30:03 +0100
parents 2d24aad37e60
children 3cc909ea91a8
comparison
equal deleted inserted replaced
27751:c9330d10419b 27752:c1d1639b52dd
225 */ 225 */
226 #define ML_DELETE 0x11 // delete line 226 #define ML_DELETE 0x11 // delete line
227 #define ML_INSERT 0x12 // insert line 227 #define ML_INSERT 0x12 // insert line
228 #define ML_FIND 0x13 // just find the line 228 #define ML_FIND 0x13 // just find the line
229 #define ML_FLUSH 0x02 // flush locked block 229 #define ML_FLUSH 0x02 // flush locked block
230 #define ML_SIMPLE(x) (x & 0x10) // DEL, INS or FIND 230 #define ML_SIMPLE(x) ((x) & 0x10) // DEL, INS or FIND
231 231
232 // argument for ml_upd_block0() 232 // argument for ml_upd_block0()
233 typedef enum { 233 typedef enum {
234 UB_FNAME = 0 // update timestamp and filename 234 UB_FNAME = 0 // update timestamp and filename
235 , UB_SAME_DIR // update the B0_SAME_DIR flag 235 , UB_SAME_DIR // update the B0_SAME_DIR flag