As suggested, GrowToFit isn't a verb, suggest renaming the function to
DynBuf_EnsureMinSize, and change the description as "Ensure that the
size of the DynBuf is at least 'size'"
Change all references of DynBuf_GrowToFit to DynBuf_EnsureMinSize.
/*
*----------------------------------------------------------------------------
*
- * DynBuf_GrowToFit --
+ * DynBuf_EnsureMinSize --
*
- * GrowToFit that dynbuf has enough room.
+ * Ensure that the size of the DynBuf is at least 'size'.
*
* Results:
* TRUE on success
#else
static INLINE Bool
#endif
-DynBuf_GrowToFit(DynBuf *buf, // IN/OUT
- size_t size) // IN
+DynBuf_EnsureMinSize(DynBuf *buf, // IN/OUT
+ size_t size) // IN
{
return buf->allocated >= size ? TRUE : DynBuf_Enlarge(buf, size);
}