put attributes after function declarations

super confusing, but the formatter is being annoying otherwise
This commit is contained in:
2025-08-23 23:08:51 +02:00
parent 4fa0a84c94
commit 89ceb5263c
2 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ struct nbt_procdat {
/* searches for the end of a named tag without processing data, the final pointer is returned.
* `NULL` is returned upon failure, the otherwise returned pointer is not guaranteed to be valid. */
PURE NONNULL((1)) const u8 *nbt_nexttag(const u8 *restrict buf);
const u8 *nbt_nexttag(const u8 *restrict buf) NONNULL((1)) PURE;
/* initialises a data structure used whilst processing the tags */
PURE NONNULL((1)) struct nbt_procdat nbt_initproc(struct nbt_path const *restrict pats, uint npats);
struct nbt_procdat nbt_initproc(struct nbt_path const *restrict pats, uint npats) NONNULL((1)) PURE;

View File

@@ -67,4 +67,4 @@ int conf_procval(struct conf_entry const *opts, const char *restrict val);
* - windows: reads %APPDATA%, if empty %USERPROFILE%\AppData\Roaming is used, if both are empty NULL is returned.
* - osx: reads $HOME, uses $HOME/Library/Application Support, if $HOME is empty NULL is returned.
* !! A malloc'd null-terminated string is returned !! */
MALLOC NONNULL((1)) char *conf_getpat(const char *);
char *conf_getpat(const char *) MALLOC NONNULL((1));