Use struct string_T to store field class_name in struct class_T.
This means we can just use the .length field in struct string_T instead of measuring it.
In addition:
eval.c use string_T to store class_name and s in function class_tv2string().vim9type.c change some calls from ga_concat() to ga_concat_len() where the length is known.vim9class.c remove unused struct definition oc_newmember_S.ga_concat() to ga_concat_len() where the length is known.scriptfile.c use string_T to store type_name, class_name and es_name in function estack_sfile().estack_sfile() simplify construction of the grow array ga to make it more closely match how .ga_concat() to ga_concat_len() where the length is known.Cheers
John
https://github.com/vim/vim/pull/18925
(12 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@basilisk0315 pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
thanks, I think this is a nice change.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()