]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1063: too many strlen() calls in userfunc.c v9.1.1063
authorJohn Marriott <basilisk@internode.on.net>
Sat, 1 Feb 2025 14:25:34 +0000 (15:25 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 1 Feb 2025 14:25:34 +0000 (15:25 +0100)
commitb32800f7c51c866dc0e87244eb4902540982309d
treef8dd4fa5897d5b91dd151e8616eb6bc803986584
parent3219da514c1f90b0883158d044512641407eacd6
patch 9.1.1063: too many strlen() calls in userfunc.c

Problem:  too many strlen() calls in userfunc.c
Solution: refactor userfunc.c and remove calls to strlen(),
          drop set_ufunc_name() and roll it into alloc_ufunc(),
          check for out-of-memory condition in trans_function_name_ext()
          (John Marriott)

closes: #16537

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/dict.c
src/eval.c
src/evalvars.c
src/proto/userfunc.pro
src/structs.h
src/userfunc.c
src/version.c
src/vim9compile.c
src/vim9instr.c