aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-13 13:49:45 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-13 13:49:45 -0400
commitb2860b098940cb6d91cd91a16a30374b1bd56bbf (patch)
treedc5b5a0b0137dd59e9e70b310eb511908cfc1e50
parent6c5f5151b7cf308a03d09ad8ff5933377f16a1a9 (diff)
Minor cleanup
-rw-r--r--builtins/util.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/builtins/util.h b/builtins/util.h
index 01f9b269..568e2cf0 100644
--- a/builtins/util.h
+++ b/builtins/util.h
@@ -37,12 +37,6 @@
extern bool USE_COLOR;
-__attribute__((format(printf, 1, 2)))
-char *heap_strf(const char *fmt, ...);
-__attribute__((format(printf, 1, 2)))
-CORD CORD_asprintf(CORD fmt, ...);
-CORD CORD_quoted(CORD str);
-CORD CORD_replace(CORD c, CORD to_replace, CORD replacement);
#define CORD_appendf(cord, fmt, ...) CORD_sprintf(cord, "%r" fmt, *(cord) __VA_OPT__(,) __VA_ARGS__)
#define CORD_all(...) CORD_catn(sizeof((CORD[]){__VA_ARGS__})/sizeof(CORD), __VA_ARGS__)
@@ -70,5 +64,11 @@ CORD CORD_replace(CORD c, CORD to_replace, CORD replacement);
} \
mapped; })
+__attribute__((format(printf, 1, 2)))
+char *heap_strf(const char *fmt, ...);
+__attribute__((format(printf, 1, 2)))
+CORD CORD_asprintf(CORD fmt, ...);
+CORD CORD_quoted(CORD str);
+CORD CORD_replace(CORD c, CORD to_replace, CORD replacement);
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0