Lines Matching defs:top
110 static int notify_override_masked(const char *top, const char *bottom) {
116 top, draw_special_char(DRAW_ARROW), bottom);
120 static int notify_override_equivalent(const char *top, const char *bottom) {
126 top, draw_special_char(DRAW_ARROW), bottom);
130 static int notify_override_redirected(const char *top, const char *bottom) {
136 top, draw_special_char(DRAW_ARROW), bottom);
140 static int notify_override_overridden(const char *top, const char *bottom) {
146 top, draw_special_char(DRAW_ARROW), bottom);
150 static int notify_override_extended(const char *top, const char *bottom) {
156 top, draw_special_char(DRAW_ARROW), bottom);
168 static int found_override(const char *top, const char *bottom) {
173 assert(top);
176 if (null_or_empty_path(top) > 0)
177 return notify_override_masked(top, bottom);
179 k = readlink_malloc(top, &dest);
182 return notify_override_equivalent(top, bottom);
184 return notify_override_redirected(top, bottom);
187 k = notify_override_overridden(top, bottom);
204 execlp("diff", "diff", "-us", "--", bottom, top, NULL);
215 static int enumerate_dir_d(Hashmap *top, Hashmap *bottom, Hashmap *drops, const char *toppath, const char *drop) {
258 log_debug("Adding at top: %s %s %s", d, draw_special_char(DRAW_ARROW), p);
259 k = hashmap_put(top, d, p);
305 static int enumerate_dir(Hashmap *top, Hashmap *bottom, Hashmap *drops, const char *path, bool dropins) {
308 assert(top);
336 enumerate_dir_d(top, bottom, drops, path, de->d_name);
345 log_debug("Adding at top: %s %s %s", basename(p), draw_special_char(DRAW_ARROW), p);
346 k = hashmap_put(top, basename(p), p);
369 Hashmap *top, *bottom, *drops;
383 top = hashmap_new(&string_hash_ops);
386 if (!top || !bottom || !drops) {
400 k = enumerate_dir(top, bottom, drops, t, dropins);
405 HASHMAP_FOREACH_KEY(f, key, top, i) {
431 hashmap_free_free(top);