summaryrefslogtreecommitdiff
path: root/core/cescal.c
diff options
context:
space:
mode:
authorChloe M. <chloe@mirocom.org>2026-05-23 19:03:15 -0400
committerChloe M. <chloe@mirocom.org>2026-05-23 19:03:15 -0400
commit8483d3c4456108cfaf469d4d3867608458f39138 (patch)
tree1f948bd59c83313353e6d10f2d7bb5bb674fc40f /core/cescal.c
parent71f232282a6bb3a45bd020e3681ac0dd90371c63 (diff)
core: parser: Add initial preprocessing stubs
Signed-off-by: Chloe M. <chloe@mirocom.org>
Diffstat (limited to 'core/cescal.c')
-rw-r--r--core/cescal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/cescal.c b/core/cescal.c
index 0121389..c41f7cd 100644
--- a/core/cescal.c
+++ b/core/cescal.c
@@ -29,8 +29,10 @@ compile(const char *pathname)
return -1;
}
- if (parser_parse(&st) < 0) {
- return -1;
+ for (int i = 0; i < 2; ++i) {
+ if (parser_parse(&st) < 0) {
+ return -1;
+ }
}
state_close(&st);