dirs
int dirs[4];
if(okay(x,y,a)) dirs[q++]= a;
dir = dirs[rn2(q)];
int dirs[NPERM][NDIR] = {
dp = dirs[rand_num(NPERM)];
a->dirs = NULL;
sk_BY_DIR_ENTRY_pop_free(a->dirs, by_dir_entry_free);
for (j = 0; j < sk_BY_DIR_ENTRY_num(ctx->dirs); j++) {
ent = sk_BY_DIR_ENTRY_value(ctx->dirs, j);
if (j < sk_BY_DIR_ENTRY_num(ctx->dirs))
if (ctx->dirs == NULL) {
ctx->dirs = sk_BY_DIR_ENTRY_new_null();
if (ctx->dirs == NULL) {
if (!sk_BY_DIR_ENTRY_push(ctx->dirs, ent)) {
for (i = 0; i < sk_BY_DIR_ENTRY_num(ctx->dirs); i++) {
ent = sk_BY_DIR_ENTRY_value(ctx->dirs, i);
STACK_OF(BY_DIR_ENTRY) *dirs;
const int dirs[] = { PF_IN, PF_OUT };
for (i = 0; i < nitems(dirs); i++) {
if (dirs[i] == PF_IN) {
sk == (dirs[i] == PF_IN ?
dirs[i] == PF_IN &&
static char *chdir_verify_path(const char *, struct dirs *);
static void setup_CURDIR_OBJDIR(struct dirs *);
static void read_all_make_rules(bool, bool, Lst, struct dirs *);
static void read_makefile_list(Lst, struct dirs *);
chdir_verify_path(const char *path, struct dirs *d)
setup_CURDIR_OBJDIR(struct dirs *d)
read_makefile_list(Lst mk, struct dirs *d)
Lst makefiles, struct dirs *d)
static struct dirs d;
struct dirs *d = q;
manpath_add(dirs, dir, option);
manpath_add(struct manpaths *dirs, const char *dir, char option)
for (i = 0; i < dirs->sz; i++)
if (strcmp(dirs->paths[i], dir) == 0)
dirs->paths = mandoc_reallocarray(dirs->paths,
dirs->sz + 1, sizeof(*dirs->paths));
dirs->paths[dirs->sz++] = mandoc_strdup(cp);
manpath_base(struct manpaths *dirs)
manpath_parseline(dirs, path_base, '\0');
manpath_parseline(struct manpaths *dirs, char *path, char option)
int dirs = 1;
dirs++;
if (dirs > 6)
if ((asprintf(&fn, "%.*s%s", dirs * 3, dotdot, compdir)) == -1)