]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit-slab.h
ci: avoid ugly "failure" in the `ci-config` job
[thirdparty/git.git] / commit-slab.h
index 05b3f2804e74d5bb6bbcc0c735d7471d32566d88..8e72a30536541cc1064b8bd8d3cf727af03fa23c 100644 (file)
  *
  *   Call this function before the slab falls out of scope to avoid
  *   leaking memory.
+ *
+ * - void deep_clear_indegree(struct indegree *, void (*free_fn)(int*))
+ *
+ *   Empties the slab, similar to clear_indegree(), but in addition it
+ *   calls the given 'free_fn' for each slab entry to release any
+ *   additional memory that might be owned by the entry (but not the
+ *   entry itself!).
+ *   Note that 'free_fn' might be called even for entries for which no
+ *   indegree_at() call has been made; in this case 'free_fn' is invoked
+ *   with a pointer to a zero-initialized location.
  */
 
 #define define_commit_slab(slabname, elemtype) \