file_systems/fs_ops_support: Add comment for next_dirent and mark "inline."
This way, anything which includes the file will not trigger a warning if it does not use the function.
This commit is contained in:
@@ -14,7 +14,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static struct dirent*
|
/*! Computes and assigns `dirent->d_reclen`, adjusts `bufferRemaining` accordingly,
|
||||||
|
* and either advances to the next buffer, or returns NULL if no space remains.
|
||||||
|
*/
|
||||||
|
static inline struct dirent*
|
||||||
next_dirent(struct dirent* dirent, size_t nameLength, size_t& bufferRemaining)
|
next_dirent(struct dirent* dirent, size_t nameLength, size_t& bufferRemaining)
|
||||||
{
|
{
|
||||||
const size_t reclen = offsetof(struct dirent, d_name) + nameLength + 1;
|
const size_t reclen = offsetof(struct dirent, d_name) + nameLength + 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user