Mercurial > vim
comparison src/spellfile.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 | 6ca2d8f4cd32 |
children | 38651469e776 |
comparison
equal
deleted
inserted
replaced
27751:c9330d10419b | 27752:c1d1639b52dd |
---|---|
2016 static void init_spellfile(void); | 2016 static void init_spellfile(void); |
2017 | 2017 |
2018 // In the postponed prefixes tree wn_flags is used to store the WFP_ flags, | 2018 // In the postponed prefixes tree wn_flags is used to store the WFP_ flags, |
2019 // but it must be negative to indicate the prefix tree to tree_add_word(). | 2019 // but it must be negative to indicate the prefix tree to tree_add_word(). |
2020 // Use a negative number with the lower 8 bits zero. | 2020 // Use a negative number with the lower 8 bits zero. |
2021 #define PFX_FLAGS -256 | 2021 #define PFX_FLAGS (-256) |
2022 | 2022 |
2023 // flags for "condit" argument of store_aff_word() | 2023 // flags for "condit" argument of store_aff_word() |
2024 #define CONDIT_COMB 1 // affix must combine | 2024 #define CONDIT_COMB 1 // affix must combine |
2025 #define CONDIT_CFIX 2 // affix must have CIRCUMFIX flag | 2025 #define CONDIT_CFIX 2 // affix must have CIRCUMFIX flag |
2026 #define CONDIT_SUF 4 // add a suffix for matching flags | 2026 #define CONDIT_SUF 4 // add a suffix for matching flags |