From: Rusty Russell Date: Fri, 16 Feb 2018 00:06:11 +0000 (+1030) Subject: path: expose separator constants. X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=ec1f716142c77fd6b4ca9939bd780150821ba7a2;p=ccan path: expose separator constants. Signed-off-by: Rusty Russell --- diff --git a/ccan/tal/path/path.c b/ccan/tal/path/path.c index c7a134e3..b5012066 100644 --- a/ccan/tal/path/path.c +++ b/ccan/tal/path/path.c @@ -11,9 +11,6 @@ #include #include -#define PATH_SEP_STR "/" -#define PATH_SEP (PATH_SEP_STR[0]) - char *path_cwd(const tal_t *ctx) { size_t len = 64; diff --git a/ccan/tal/path/path.h b/ccan/tal/path/path.h index 5678fd1a..2f7f608b 100644 --- a/ccan/tal/path/path.h +++ b/ccan/tal/path/path.h @@ -165,4 +165,8 @@ char **path_split(const tal_t *ctx, const char *path TAKES); */ size_t path_ext_off(const char *path); +/* Separator constants */ +#define PATH_SEP_STR "/" +#define PATH_SEP (PATH_SEP_STR[0]) + #endif /* CCAN_PATH_H */