diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-08-09 11:59:59 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-08-09 11:59:59 +0530 |
commit | 81857618e9b78e168278ef5990b829b3b327726b (patch) | |
tree | 94eb761d9e5d1410782058e06b6098cf19ca7bdc | |
parent | fcc034ca49d94e4a94bcf8c113fc402393fb1e4c (diff) |
engine: eachdo: fetch_files()->handle_file_source()
-rw-r--r-- | src/engine/eachdo.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/engine/eachdo.c b/src/engine/eachdo.c index 36dd335..9126266 100644 --- a/src/engine/eachdo.c +++ b/src/engine/eachdo.c @@ -84,7 +84,9 @@ write_eachdo_iteration(char **content, * content: A pointer to the buffer that is appended to */ static void -fetch_files(eachdo_operands_t *operands, list_t *directives, char **content) +handle_file_source(eachdo_operands_t *operands, + list_t *directives, + char **content) { char *path; asprintf(&path, "%s/%s", msg->base_directory, trim(operands->key)); @@ -134,10 +136,10 @@ handle_eachdo(char **buffer, key_match_t *match, directive_t *directive) list_t *directives = lex(operands->content); char *content = calloc(1, sizeof(char)); - fetch_files(operands, directives, &content); - char *temp_buffer = strdup(*buffer); + handle_file_source(operands, directives, &content); + char *temp_buffer = strdup(*buffer); free(*buffer); asprintf(buffer, "%.*s%s%s\n", |