0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4145: confusing error when using name of import for a function

Problem:    Confusing error when using name of import for a function.
Solution:   Pass a flag to trans_function_name().
This commit is contained in:
Bram Moolenaar
2022-01-19 17:21:29 +00:00
parent 1a8825d7a3
commit 937610bc9f
6 changed files with 27 additions and 8 deletions

View File

@@ -2632,6 +2632,7 @@ typedef enum {
#define TFN_READ_ONLY 0x10 // will not change the var
#define TFN_NO_DECL 0x20 // only used for GLV_NO_DECL
#define TFN_COMPILING 0x40 // only used for GLV_COMPILING
#define TFN_NEW_FUNC 0x80 // defining a new function
// Values for get_lval() flags argument:
#define GLV_QUIET TFN_QUIET // no error messages