Join one setter with the readers of its key in Dockerfile `df`'s image. */
| 393 | |
| 394 | /* Join one setter with the readers of its key in Dockerfile `df`'s image. */ |
| 395 | static void ej_join_df(ej_t *j, int64_t setter, const char *key, const char *df) { |
| 396 | const ej_set_t *s = df && df[0] ? cbm_ht_get(j->sets, df) : NULL; |
| 397 | const ej_reader_t *rs = s ? cbm_ht_get(j->readers, key) : NULL; |
| 398 | intptr_t n = rs ? (intptr_t)cbm_ht_get(j->nreaders, key) : 0; |
| 399 | for (intptr_t i = 0; i < n; i++) { |
| 400 | if (ej_in_image(s, rs[i].file)) { |
| 401 | ej_edge(j, setter, &rs[i], s); |
| 402 | } |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | /* A scoped EnvVar: its owner, container and key from the QN. */ |
| 407 | static void ej_join_setter(ej_t *j, const cbm_gbuf_node_t *ev) { |
no test coverage detected