libgit2/tests-clay/core
Russell Belfer 309113c984 Make initial value of git_buf ptr always be a valid empty string.
Taking a page from core git's strbuf, this introduces git_buf_initbuf
which is an empty string that is used to initialize the git_buf ptr
value even for new buffers.  Now the git_buf ptr will always point to
a valid NUL-terminated string.

This change required jumping through a few hoops for git_buf_grow
and git_buf_free to distinguish between a actual allocated buffer
and the global initial value.  Also, this moves the allocation
related functions to be next to each other near the top of buffer.c.
2011-11-29 23:45:17 -08:00
..
buffer.c Make initial value of git_buf ptr always be a valid empty string. 2011-11-29 23:45:17 -08:00
dirent.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
filebuf.c filebuf: add GIT_FILEBUF_INIT and protect multiple opens and cleanups 2011-11-22 01:53:56 +01:00
oid.c oid: Add git_oid_streq() which checks if an oid and an hex formatted string are equal 2011-10-13 23:15:11 +02:00
path.c global: Properly use git__ memory wrappers 2011-10-28 19:02:36 -07:00
rmdir.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
string.c Come out and Clay 2011-09-15 01:12:46 +02:00
strtol.c tests-clay: update clay 2011-10-07 23:02:02 +02:00
vector.c global: Properly use git__ memory wrappers 2011-10-28 19:02:36 -07:00