diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-10-08 11:54:10 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-10-10 11:18:06 -0400 |
commit | 2889537ee68dacbdd9c8ea4e2053e03e86219c24 (patch) | |
tree | dba9bcb673ac93a0a30d2f1752797aaab2be9403 | |
parent | 271f6f44ea645c74f3130f03311b65e5dbdc7139 (diff) | |
download | bfs-2889537ee68dacbdd9c8ea4e2053e03e86219c24.tar.xz |
Adjust in/out parameter docs
-rw-r--r-- | src/color.c | 2 | ||||
-rw-r--r-- | src/dir.h | 2 | ||||
-rw-r--r-- | src/stat.h | 2 | ||||
-rw-r--r-- | src/xregex.h | 2 | ||||
-rw-r--r-- | src/xtime.h | 14 |
5 files changed, 11 insertions, 11 deletions
diff --git a/src/color.c b/src/color.c index 0885726..d1b36f9 100644 --- a/src/color.c +++ b/src/color.c @@ -434,7 +434,7 @@ static const struct esc_seq *get_ext(const struct colors *colors, const char *fi * The value to parse. * @end * The character that marks the end of the chunk. - * @next (out) + * @next[out] * Will be set to the next chunk. * @return * 0 on success, -1 on failure. @@ -141,7 +141,7 @@ int bfs_polldir(struct bfs_dir *dir); * * @dir * The directory to read. - * @dirent (out) + * @dirent[out] * The directory entry to populate. * @return * 1 on success, 0 on EOF, or -1 on failure. @@ -126,7 +126,7 @@ struct bfs_stat { * itself. * @flags * Flags that affect the lookup. - * @buf (out) + * @buf[out] * A place to store the stat buffer, if successful. * @return * 0 on success, -1 on error. diff --git a/src/xregex.h b/src/xregex.h index 3bf3535..c4504ee 100644 --- a/src/xregex.h +++ b/src/xregex.h @@ -42,7 +42,7 @@ enum bfs_regexec_flags { /** * Wrapper for regcomp() that supports additional regex types. * - * @preg (out) + * @preg[out] * Will hold the compiled regex. * @pattern * The regular expression to compile. diff --git a/src/xtime.h b/src/xtime.h index 7a1cf99..11f2bf9 100644 --- a/src/xtime.h +++ b/src/xtime.h @@ -13,9 +13,9 @@ /** * mktime() wrapper that reports errors more reliably. * - * @tm (in+out) - * The struct tm to convert. - * @timep (out) + * @tm[in,out] + * The struct tm to convert and normalize. + * @timep[out] * A pointer to the result. * @return * 0 on success, -1 on failure. @@ -25,9 +25,9 @@ int xmktime(struct tm *tm, time_t *timep); /** * A portable timegm(), the inverse of gmtime(). * - * @tm (in+out) - * The struct tm to convert. - * @timep (out) + * @tm[in,out] + * The struct tm to convert and normalize. + * @timep[out] * A pointer to the result. * @return * 0 on success, -1 on failure. @@ -39,7 +39,7 @@ int xtimegm(struct tm *tm, time_t *timep); * * @str * The string to parse. - * @result (out) + * @result[out] * A pointer to the result. * @return * 0 on success, -1 on failure. |