Mercurial > vim
comparison src/vim9type.c @ 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 | b8a6a0007dc3 |
children | 951f3e04e238 |
comparison
equal
deleted
inserted
replaced
25566:e1c7aa26ddf5 | 25567:0082503ff2ff |
---|---|
22 | 22 |
23 /* | 23 /* |
24 * Allocate memory for a type_T and add the pointer to type_gap, so that it can | 24 * Allocate memory for a type_T and add the pointer to type_gap, so that it can |
25 * be easily freed later. | 25 * be easily freed later. |
26 */ | 26 */ |
27 type_T * | 27 static type_T * |
28 get_type_ptr(garray_T *type_gap) | 28 get_type_ptr(garray_T *type_gap) |
29 { | 29 { |
30 type_T *type; | 30 type_T *type; |
31 | 31 |
32 if (ga_grow(type_gap, 1) == FAIL) | 32 if (ga_grow(type_gap, 1) == FAIL) |