Mercurial > vim
comparison src/structs.h @ 25326:cfbf40f749b0 v8.2.3200
patch 8.2.3200: Vim9: hard to guess where a type error is given
Commit: https://github.com/vim/vim/commit/7a3fe3e180bdbce8f193abdf399559c5154bdaae
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 22 14:58:47 2021 +0200
patch 8.2.3200: Vim9: hard to guess where a type error is given
Problem: Vim9: hard to guess where a type error is given.
Solution: Add the function name where possible. (closes https://github.com/vim/vim/issues/8608)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 22 Jul 2021 15:00:05 +0200 |
parents | cf0774d010b7 |
children | f03271631eb5 |
comparison
equal
deleted
inserted
replaced
25325:6d48afa9f12d | 25326:cfbf40f749b0 |
---|---|
4436 MAGIC_ALL = 4 // "\v" very magic | 4436 MAGIC_ALL = 4 // "\v" very magic |
4437 } magic_T; | 4437 } magic_T; |
4438 | 4438 |
4439 // Struct used to pass to error messages about where the error happened. | 4439 // Struct used to pass to error messages about where the error happened. |
4440 typedef struct { | 4440 typedef struct { |
4441 char *wt_func_name; // function name or NULL | |
4441 char wt_index; // argument or variable index, 0 means unknown | 4442 char wt_index; // argument or variable index, 0 means unknown |
4442 char wt_variable; // "variable" when TRUE, "argument" otherwise | 4443 char wt_variable; // "variable" when TRUE, "argument" otherwise |
4443 } where_T; | 4444 } where_T; |
4444 | 4445 |
4446 #define WHERE_INIT {NULL, 0, 0} | |
4447 |