Update namespace for cpath functions
This commit is contained in:
		| @@ -6,10 +6,10 @@ | |||||||
| #define NUMPARTS(...)                                                          \ | #define NUMPARTS(...)                                                          \ | ||||||
|   (sizeof((const char *[]){"", __VA_ARGS__}) / sizeof(const char *) - 1) |   (sizeof((const char *[]){"", __VA_ARGS__}) / sizeof(const char *) - 1) | ||||||
|  |  | ||||||
| #define wapp_join_path(DST, ...)                                               \ | #define cpath_join_path(DST, ...)                                              \ | ||||||
|   join_path(DST, NUMPARTS(__VA_ARGS__), __VA_ARGS__) |   join_path(DST, NUMPARTS(__VA_ARGS__), __VA_ARGS__) | ||||||
| #define wapp_dirname(DST, PATH) dirup(DST, 1, PATH) | #define cpath_dirname(DST, PATH) dirup(DST, 1, PATH) | ||||||
| #define wapp_dirup(DST, COUNT, PATH) dirup(DST, COUNT, PATH) | #define cpath_dirup(DST, COUNT, PATH) dirup(DST, COUNT, PATH) | ||||||
|  |  | ||||||
| void join_path(char *dst, u64 count, ...); | void join_path(char *dst, u64 count, ...); | ||||||
| void dirup(char *dst, u64 levels, const char *path); | void dirup(char *dst, u64 levels, const char *path); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user