Mercurial > vim
comparison src/proto/vim9compile.pro @ 23640:8dcb2255ff9a v8.2.2362
patch 8.2.2362: Vim9: check of builtin function argument type is incomplete
Commit: https://github.com/vim/vim/commit/351ead09dd365ebdee2bfa27ab22542d4920c779
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 16 16:07:01 2021 +0100
patch 8.2.2362: Vim9: check of builtin function argument type is incomplete
Problem: Vim9: check of builtin function argument type is incomplete.
Solution: Use need_type() instead of check_arg_type().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 Jan 2021 16:15:04 +0100 |
parents | 5c094273c015 |
children | e3720756acdc |
comparison
equal
deleted
inserted
replaced
23639:a93ecfa78aef | 23640:8dcb2255ff9a |
---|---|
1 /* vim9compile.c */ | 1 /* vim9compile.c */ |
2 int check_defined(char_u *p, size_t len, cctx_T *cctx); | 2 int check_defined(char_u *p, size_t len, cctx_T *cctx); |
3 int check_compare_types(exprtype_T type, typval_T *tv1, typval_T *tv2); | 3 int check_compare_types(exprtype_T type, typval_T *tv1, typval_T *tv2); |
4 int use_typecheck(type_T *actual, type_T *expected); | 4 int use_typecheck(type_T *actual, type_T *expected); |
5 int need_type(type_T *actual, type_T *expected, int offset, int arg_idx, cctx_T *cctx, int silent, int actual_is_const); | |
5 int get_script_item_idx(int sid, char_u *name, int check_writable, cctx_T *cctx); | 6 int get_script_item_idx(int sid, char_u *name, int check_writable, cctx_T *cctx); |
6 imported_T *find_imported(char_u *name, size_t len, cctx_T *cctx); | 7 imported_T *find_imported(char_u *name, size_t len, cctx_T *cctx); |
7 imported_T *find_imported_in_script(char_u *name, size_t len, int sid); | 8 imported_T *find_imported_in_script(char_u *name, size_t len, int sid); |
8 char_u *peek_next_line_from_context(cctx_T *cctx); | 9 char_u *peek_next_line_from_context(cctx_T *cctx); |
9 char_u *next_line_from_context(cctx_T *cctx, int skip_comment); | 10 char_u *next_line_from_context(cctx_T *cctx, int skip_comment); |