diff 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
line wrap: on
line diff
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -648,7 +648,7 @@ eval_one_expr_in_str(char_u *p, garray_T
  * Used for a heredoc assignment.
  * Returns NULL for an error.
  */
-    char_u *
+    static char_u *
 eval_all_expr_in_str(char_u *str)
 {
     garray_T	ga;