From ec1f716142c77fd6b4ca9939bd780150821ba7a2 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 16 Feb 2018 10:36:11 +1030 Subject: [PATCH] path: expose separator constants. Signed-off-by: Rusty Russell --- ccan/tal/path/path.c | 3 --- ccan/tal/path/path.h | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) 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 */ -- 2.39.2