Mercurial > vim
comparison src/evalvars.c @ 29320:a74398c432a4 v9.0.0003
patch 9.0.0003: functions are global while they could be local
Commit: https://github.com/vim/vim/commit/ee47eaceaa148e07b566ff420f9a3c2edde2fa34
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Wed Jun 29 12:55:36 2022 +0100
patch 9.0.0003: functions are global while they could be local
Problem: Functions are global while they could be local.
Solution: Add "static". Add a few tests. (Yegappan Lakshmanan,
closes #10612)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 29 Jun 2022 14:00:03 +0200 |
parents | 84a6794a9320 |
children | 8f1e16995118 |
comparison
equal
deleted
inserted
replaced
29319:0f3ce048146b | 29320:a74398c432a4 |
---|---|
646 * Evaluate all the Vim expressions {expr} in "str" and return the resulting | 646 * Evaluate all the Vim expressions {expr} in "str" and return the resulting |
647 * string in allocated memory. "{{" is reduced to "{" and "}}" to "}". | 647 * string in allocated memory. "{{" is reduced to "{" and "}}" to "}". |
648 * Used for a heredoc assignment. | 648 * Used for a heredoc assignment. |
649 * Returns NULL for an error. | 649 * Returns NULL for an error. |
650 */ | 650 */ |
651 char_u * | 651 static char_u * |
652 eval_all_expr_in_str(char_u *str) | 652 eval_all_expr_in_str(char_u *str) |
653 { | 653 { |
654 garray_T ga; | 654 garray_T ga; |
655 char_u *p; | 655 char_u *p; |
656 | 656 |