Mercurial > vim
comparison src/vim9instr.c @ 27032:18cafa092e8d v8.2.4045
patch 8.2.4045: some global functions are only used in one file
Commit: https://github.com/vim/vim/commit/782b43d89473dac00e3a8e02224a8330b88dbfef
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Jan 8 18:43:40 2022 +0000
patch 8.2.4045: some global functions are only used in one file
Problem: Some global functions are only used in one file.
Solution: Make the functions static. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/9492)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Jan 2022 19:45:03 +0100 |
parents | ccb9be1cdd71 |
children | 1e2a6c6c7e42 |
comparison
equal
deleted
inserted
replaced
27031:348fe9745475 | 27032:18cafa092e8d |
---|---|
64 | 64 |
65 /* | 65 /* |
66 * Generate instruction "isn_type" and put "type" on the type stack, | 66 * Generate instruction "isn_type" and put "type" on the type stack, |
67 * use "decl_type" for the declared type. | 67 * use "decl_type" for the declared type. |
68 */ | 68 */ |
69 isn_T * | 69 static isn_T * |
70 generate_instr_type2( | 70 generate_instr_type2( |
71 cctx_T *cctx, | 71 cctx_T *cctx, |
72 isntype_T isn_type, | 72 isntype_T isn_type, |
73 type_T *type, | 73 type_T *type, |
74 type_T *decl_type) | 74 type_T *decl_type) |
826 } | 826 } |
827 | 827 |
828 /* | 828 /* |
829 * Generate an ISN_STOREOUTER instruction. | 829 * Generate an ISN_STOREOUTER instruction. |
830 */ | 830 */ |
831 int | 831 static int |
832 generate_STOREOUTER(cctx_T *cctx, int idx, int level) | 832 generate_STOREOUTER(cctx_T *cctx, int idx, int level) |
833 { | 833 { |
834 isn_T *isn; | 834 isn_T *isn; |
835 | 835 |
836 RETURN_OK_IF_SKIP(cctx); | 836 RETURN_OK_IF_SKIP(cctx); |
860 } | 860 } |
861 | 861 |
862 /* | 862 /* |
863 * Generate an ISN_STOREOPT or ISN_STOREFUNCOPT instruction | 863 * Generate an ISN_STOREOPT or ISN_STOREFUNCOPT instruction |
864 */ | 864 */ |
865 int | 865 static int |
866 generate_STOREOPT( | 866 generate_STOREOPT( |
867 cctx_T *cctx, | 867 cctx_T *cctx, |
868 isntype_T isn_type, | 868 isntype_T isn_type, |
869 char_u *name, | 869 char_u *name, |
870 int opt_flags) | 870 int opt_flags) |