aboutsummaryrefslogtreecommitdiff
path: root/src/engine.c
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-07-27 18:23:42 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-07-27 18:24:07 +0530
commit119012f284233587f6622669da2b76da7fd073e2 (patch)
tree4c48899c8890e97bf061d23ef87884b316b359ae /src/engine.c
parent2870df21c361d00650c026f9c98ab70107d496f5 (diff)
lexer: for->eachdo
Diffstat (limited to 'src/engine.c')
-rw-r--r--src/engine.c15
1 files changed, 7 insertions, 8 deletions
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: