path: expose separator constants.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 16 Feb 2018 00:06:11 +0000 (10:36 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 16 Feb 2018 00:06:11 +0000 (10:36 +1030)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tal/path/path.c
ccan/tal/path/path.h

index c7a134e3c9d9981699f9c95e4ad10fde71b9fa7d..b50120667c0759649d35292578f627ef644988c3 100644 (file)
@@ -11,9 +11,6 @@
 #include <errno.h>
 #include <assert.h>
 
-#define PATH_SEP_STR "/"
-#define PATH_SEP (PATH_SEP_STR[0])
-
 char *path_cwd(const tal_t *ctx)
 {
        size_t len = 64;
index 5678fd1a99e6f87280d1089d089b988704450201..2f7f608b23885285c606da81280d650dd8cf4cbe 100644 (file)
@@ -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 */