From 119012f284233587f6622669da2b76da7fd073e2 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sun, 27 Jul 2025 18:23:42 +0530 Subject: lexer: for->eachdo --- src/engine.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/engine.c') diff --git a/src/engine.c b/src/engine.c index 7477d16..d377bee 100644 --- a/src/engine.c +++ b/src/engine.c @@ -74,16 +74,15 @@ handle_contentfor(char **buffer, void handle_for(char **buffer, key_match_t *match, directive_t *directive) { - for_operand_t *operand = directive->operands; + eachdo_operands_t *operands = directive->operands; #ifdef DEBUG - printf("KEY: %s\n", operand->key); - printf("SOURCE: %s\n", operand->source); - printf("CONTENT: %s\n", operand->content); - exit(1); + printf("KEY: %s\n", operands->key); + printf("CONTENT: %s\n", operands->content); #endif - free(operand); + exit(1); + free(operands); } list_t * @@ -125,11 +124,11 @@ ingest(char **buffer) case CONTENTFOR: handle_contentfor(buffer, match, directive, content_headers); break; - case FOR: + case EACHDO: handle_for(buffer, match, directive); break; - case ENDFOR: + case ENDEACHDO: case BODY: case CONTENT: case ENDCONTENT: -- cgit v1.2.3