summaryrefslogtreecommitdiff
path: root/include/git2/sys
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-06-27 10:12:16 +0200
committerGitHub <noreply@github.com>2019-06-27 10:12:16 +0200
commitb6625a3b6e322937622625d55cb512e1d0ee384b (patch)
treebfb600d3cd2ac640820b52c1d2e8fbaaccf103ff /include/git2/sys
parent3d22394ab5e5f708e3f01296cbca071d3770ff2d (diff)
parent33448b4519a83836d876556f46a0b7f9f5c90995 (diff)
downloadlibgit2-b6625a3b6e322937622625d55cb512e1d0ee384b.tar.gz
Merge pull request #5128 from tiennou/fix/docs
More documentation
Diffstat (limited to 'include/git2/sys')
-rw-r--r--include/git2/sys/alloc.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/git2/sys/alloc.h b/include/git2/sys/alloc.h
index 642740dab..c295807bc 100644
--- a/include/git2/sys/alloc.h
+++ b/include/git2/sys/alloc.h
@@ -21,51 +21,51 @@ GIT_BEGIN_DECL
* that all fields need to be set to a proper function.
*/
typedef struct {
- /* Allocate `n` bytes of memory */
+ /** Allocate `n` bytes of memory */
void * GIT_CALLBACK(gmalloc)(size_t n, const char *file, int line);
- /*
+ /**
* Allocate memory for an array of `nelem` elements, where each element
* has a size of `elsize`. Returned memory shall be initialized to
* all-zeroes
*/
void * GIT_CALLBACK(gcalloc)(size_t nelem, size_t elsize, const char *file, int line);
- /* Allocate memory for the string `str` and duplicate its contents. */
+ /** Allocate memory for the string `str` and duplicate its contents. */
char * GIT_CALLBACK(gstrdup)(const char *str, const char *file, int line);
- /*
+ /**
* Equivalent to the `gstrdup` function, but only duplicating at most
* `n + 1` bytes
*/
char * GIT_CALLBACK(gstrndup)(const char *str, size_t n, const char *file, int line);
- /*
+ /**
* Equivalent to `gstrndup`, but will always duplicate exactly `n` bytes
* of `str`. Thus, out of bounds reads at `str` may happen.
*/
char * GIT_CALLBACK(gsubstrdup)(const char *str, size_t n, const char *file, int line);
- /*
+ /**
* This function shall deallocate the old object `ptr` and return a
* pointer to a new object that has the size specified by `size`. In
* case `ptr` is `NULL`, a new array shall be allocated.
*/
void * GIT_CALLBACK(grealloc)(void *ptr, size_t size, const char *file, int line);
- /*
+ /**
* This function shall be equivalent to `grealloc`, but allocating
* `neleme * elsize` bytes.
*/
void * GIT_CALLBACK(greallocarray)(void *ptr, size_t nelem, size_t elsize, const char *file, int line);
- /*
+ /**
* This function shall allocate a new array of `nelem` elements, where
* each element has a size of `elsize` bytes.
*/
void * GIT_CALLBACK(gmallocarray)(size_t nelem, size_t elsize, const char *file, int line);
- /*
+ /**
* This function shall free the memory pointed to by `ptr`. In case
* `ptr` is `NULL`, this shall be a no-op.
*/