Merge branch 'jc/doc-release-vs-clear'
Doc update. * jc/doc-release-vs-clear: CodingGuidelines: clarify that S_release() does not reinitialize
This commit is contained in:
@@ -624,8 +624,9 @@ For C programs:
|
|||||||
- `S_init()` initializes a structure without allocating the
|
- `S_init()` initializes a structure without allocating the
|
||||||
structure itself.
|
structure itself.
|
||||||
|
|
||||||
- `S_release()` releases a structure's contents without freeing the
|
- `S_release()` releases a structure's contents without reinitializing
|
||||||
structure.
|
the structure for immediate reuse, and without freeing the structure
|
||||||
|
itself.
|
||||||
|
|
||||||
- `S_clear()` is equivalent to `S_release()` followed by `S_init()`
|
- `S_clear()` is equivalent to `S_release()` followed by `S_init()`
|
||||||
such that the structure is directly usable after clearing it. When
|
such that the structure is directly usable after clearing it. When
|
||||||
|
|||||||
Reference in New Issue
Block a user