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:
Augustin Cavalier
2023-01-27 23:48:00 -05:00
parent fbc5512274
commit dc95ec5777
@@ -14,7 +14,10 @@
#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)
{
const size_t reclen = offsetof(struct dirent, d_name) + nameLength + 1;