From 42a0bed351979cb4a59c641fa5f03e49609561fd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 30 Mar 2022 16:36:31 +0900 Subject: Prefix ccan headers (#4568) * Prefixed ccan headers * Remove unprefixed names in ccan/build_assert * Remove unprefixed names in ccan/check_type * Remove unprefixed names in ccan/container_of * Remove unprefixed names in ccan/list Co-authored-by: Samuel Williams --- ccan/str/str.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ccan/str') diff --git a/ccan/str/str.h b/ccan/str/str.h index 9a9da9cd3f..6d4cf62423 100644 --- a/ccan/str/str.h +++ b/ccan/str/str.h @@ -2,15 +2,16 @@ #ifndef CCAN_STR_H #define CCAN_STR_H /** - * stringify - Turn expression into a string literal + * ccan_stringify - Turn expression into a string literal * @expr: any C expression * * Example: * #define PRINT_COND_IF_FALSE(cond) \ - * ((cond) || printf("%s is false!", stringify(cond))) + * ((cond) || printf("%s is false!", ccan_stringify(cond))) */ -#define stringify(expr) stringify_1(expr) +#define stringify(expr) ccan_stringify_1(expr) +#define ccan_stringify(expr) ccan_stringify_1(expr) /* Double-indirection required to stringify expansions */ -#define stringify_1(expr) #expr +#define ccan_stringify_1(expr) #expr #endif /* CCAN_STR_H */ -- cgit v1.2.3