From b2860b098940cb6d91cd91a16a30374b1bd56bbf Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 13 Sep 2024 13:49:45 -0400 Subject: Minor cleanup --- builtins/util.h | 12 ++++++------ 1 file 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 -- cgit v1.2.3