Mercurial > vim
comparison src/proto/vim9compile.pro @ 25567:0082503ff2ff v8.2.3320
patch 8.2.3320: some local functions are not static
Commit: https://github.com/vim/vim/commit/8ee52affe7fd4daa03e002bc06611f0a8c3bcd5b
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Mon Aug 9 19:59:06 2021 +0200
patch 8.2.3320: some local functions are not static
Problem: Some local functions are not static.
Solution: Add "static". Move snprintf() related code to strings.c.
(Yegappan Lakshmanan, closes #8734)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 09 Aug 2021 20:00:06 +0200 |
parents | e56c8dc1a534 |
children | 483b40e87ca5 |
comparison
equal
deleted
inserted
replaced
25566:e1c7aa26ddf5 | 25567:0082503ff2ff |
---|---|
1 /* vim9compile.c */ | 1 /* vim9compile.c */ |
2 int check_defined(char_u *p, size_t len, cctx_T *cctx, int is_arg); | 2 int check_defined(char_u *p, size_t len, cctx_T *cctx, int is_arg); |
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); | |
5 int need_type(type_T *actual, type_T *expected, int offset, int arg_idx, cctx_T *cctx, int silent, int actual_is_const); | 4 int need_type(type_T *actual, type_T *expected, int offset, int arg_idx, cctx_T *cctx, int silent, int actual_is_const); |
6 int func_needs_compiling(ufunc_T *ufunc, compiletype_T compile_type); | 5 int func_needs_compiling(ufunc_T *ufunc, compiletype_T compile_type); |
7 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); |
8 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); |
9 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); |
10 char_u *peek_next_line_from_context(cctx_T *cctx); | 9 char_u *peek_next_line_from_context(cctx_T *cctx); |
11 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); |
12 char_u *to_name_end(char_u *arg, int use_namespace); | |
13 char_u *to_name_const_end(char_u *arg); | 11 char_u *to_name_const_end(char_u *arg); |
14 int get_lambda_tv_and_compile(char_u **arg, typval_T *rettv, int types_optional, evalarg_T *evalarg); | 12 int get_lambda_tv_and_compile(char_u **arg, typval_T *rettv, int types_optional, evalarg_T *evalarg); |
15 exprtype_T get_compare_type(char_u *p, int *len, int *type_is); | 13 exprtype_T get_compare_type(char_u *p, int *len, int *type_is); |
16 void error_white_both(char_u *op, int len); | 14 void error_white_both(char_u *op, int len); |
17 void fill_exarg_from_cctx(exarg_T *eap, cctx_T *cctx); | 15 void fill_exarg_from_cctx(exarg_T *eap, cctx_T *cctx); |