Lines Matching refs:dirs
94 manpath_base(struct manpaths *dirs)
97 manpath_parseline(dirs, path_base, '\0');
104 manpath_parseline(struct manpaths *dirs, char *path, char option)
112 manpath_add(dirs, dir, option);
120 manpath_add(struct manpaths *dirs, const char *dir, char option)
130 for (i = 0; i < dirs->sz; i++)
131 if (strcmp(dirs->paths[i], dir) == 0)
137 dirs->paths = mandoc_reallocarray(dirs->paths,
138 dirs->sz + 1, sizeof(*dirs->paths));
139 dirs->paths[dirs->sz++] = mandoc_strdup(cp);