Mercurial > vim
comparison src/userfunc.c @ 27018:268f6a3511df v8.2.4038
patch 8.2.4038: various code not used when features are disabled
Commit: https://github.com/vim/vim/commit/748b308eebe8d8860888eb27da08333f175d547d
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Sat Jan 8 12:41:16 2022 +0000
patch 8.2.4038: various code not used when features are disabled
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9491)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Jan 2022 13:45:04 +0100 |
parents | cf5b5e95f62b |
children | eebbcc83fb75 |
comparison
equal
deleted
inserted
replaced
27017:da790d50f73d | 27018:268f6a3511df |
---|---|
37 func_init() | 37 func_init() |
38 { | 38 { |
39 hash_init(&func_hashtab); | 39 hash_init(&func_hashtab); |
40 } | 40 } |
41 | 41 |
42 #if defined(FEAT_PROFILE) || defined(PROTO) | |
42 /* | 43 /* |
43 * Return the function hash table | 44 * Return the function hash table |
44 */ | 45 */ |
45 hashtab_T * | 46 hashtab_T * |
46 func_tbl_get(void) | 47 func_tbl_get(void) |
47 { | 48 { |
48 return &func_hashtab; | 49 return &func_hashtab; |
49 } | 50 } |
51 #endif | |
50 | 52 |
51 /* | 53 /* |
52 * Get one function argument. | 54 * Get one function argument. |
53 * If "argtypes" is not NULL also get the type: "arg: type" (:def function). | 55 * If "argtypes" is not NULL also get the type: "arg: type" (:def function). |
54 * If "types_optional" is TRUE a missing type is OK, use "any". | 56 * If "types_optional" is TRUE a missing type is OK, use "any". |