Upgrade mutt_str_append_item()
to use struct Buffer
#4129
Closed
flatcap
started this conversation in
Development
Replies: 2 comments
-
I started this here: #4159 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Done: eb40606 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
mutt_str_append_item()
appends a string to another string, with a separator character.This means resizing the original string.
This function would be simpler if it used
struct Buffer
.Its callers could then use
buf_pool_get()
andbuf_pool_release()
.Most callers use the string and discard it.
The two marked with a red dot need a copy.
Source: gv svg
Beta Was this translation helpful? Give feedback.
All reactions