0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.0627: "const" and "final" both make the type a constant

Problem:    "const" and "final" both make the type a constant. (Daniel
            Steinberg)
Solution:   Only have "const" make the type a constant.
This commit is contained in:
Bram Moolenaar
2022-09-30 11:04:50 +01:00
parent b152b6a40f
commit 6586a01514
6 changed files with 36 additions and 11 deletions

View File

@@ -2250,6 +2250,7 @@ typedef enum {
} estack_arg_T;
// Flags for assignment functions.
#define ASSIGN_VAR 0 // ":var" (nothing special)
#define ASSIGN_FINAL 0x01 // ":final"
#define ASSIGN_CONST 0x02 // ":const"
#define ASSIGN_NO_DECL 0x04 // "name = expr" without ":let"/":const"/":final"