From f4ab531029fabaf0901e35808a1d5088869410c5 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Fri, 29 Aug 2025 21:41:10 -0400 Subject: engine: handle config.cfg source for eachdo --- src/engine/eachdo.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/engine/eachdo.c') diff --git a/src/engine/eachdo.c b/src/engine/eachdo.c index 2b1cf07..1bebfd9 100644 --- a/src/engine/eachdo.c +++ b/src/engine/eachdo.c @@ -154,10 +154,10 @@ handle_file_source(list_t *atoms, } void -handle_page_source(list_t *atoms, - eachdo_operands_t *operands, - list_t *directives, - config_t *config) +handle_config_source(list_t *atoms, + eachdo_operands_t *operands, + list_t *directives, + config_t *config) { if (config == NULL) { printf("EACHDO with page variables as a source will not work without " @@ -210,7 +210,9 @@ handle_eachdo(char **buffer, if (!strcmp(operands->source, "resources")) handle_file_source(atoms, operands, directives); else if (!strcmp(operands->source, "page")) - handle_page_source(atoms, operands, directives, config); + handle_config_source(atoms, operands, directives, config); + else if (!strcmp(operands->source, "config")) + handle_config_source(atoms, operands, directives, msg->config); else printf("Unknown source: %s\n", operands->source); -- cgit v1.2.3