Thread (11 messages) flat view 11 messages, 5 authors, 2020-02-27

[GSoC][RFC][PATCH 0/2] STRBUF_INIT_CONST Cover

From: Robear Selwans <hidden>
Date: 2020-02-18 04:18:23

This was added according to the issue opened at [https://github.com/gitgitgadget/git/issues/398]

[Copied directly from the issue description]
This new way to initialize an strbuf would set buf to the specified
constant string, the appropriate len = strlen(string), and alloc to 0.
 
That way, we can initialize strbufs with constant values, only
allocating memory when/if needed.
Things Done:
	- Added a new way to initialize constant `strbuf`
	- Edited functions that try to edit the `strbuf` to check if it was
	initialized as a constant

Robear Selwans (2):
  STRBUF_INIT_CONST: a new way to initialize strbuf
  STRBUF_INIT_CONST: Adapting strbuf_* functions

 strbuf.c | 25 +++++++++++++++++++++++++
 strbuf.h | 15 +++++++++++++++
 2 files changed, 40 insertions(+)

-- 
2.17.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help