Lines Matching refs:prefix
56 char* path_make_absolute(const char *p, const char *prefix);
60 char *path_startswith_full(const char *path, const char *prefix, bool accept_dot_dot) _pure_;
61 static inline char* path_startswith(const char *path, const char *prefix) { in path_startswith() argument
62 return path_startswith_full(path, prefix, true); in path_startswith()
106 #define PATH_FOREACH_PREFIX(prefix, path) \ argument
108 path_simplify(strcpy(prefix, path)); \
109 streq(prefix, "/") ? NULL : strrchr(prefix, '/'); \
112 _slash = strrchr((prefix), '/'))
115 #define PATH_FOREACH_PREFIX_MORE(prefix, path) \ argument
117 path_simplify(strcpy(prefix, path)); \
118 if (streq(prefix, "/")) \
119 prefix[0] = 0; \
120 strrchr(prefix, 0); \
123 _slash = strrchr((prefix), '/'))