aboutsummaryrefslogtreecommitdiff
path: root/src/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer.c')
-rw-r--r--src/lexer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lexer.c b/src/lexer.c
index 5f0b99c..61ecbdf 100644
--- a/src/lexer.c
+++ b/src/lexer.c
@@ -341,6 +341,8 @@ find_directive(char *content, key_match_t *match)
found_start:
directive = (directive_t *) calloc(1, sizeof(directive_t));
+#define DIRECTIVE_IS(key) strncmp(buffer + n, key, strlen(key)) == 0
+
if (DIRECTIVE_IS("endcontent")) {
directive->type = ENDCONTENT;
directive->operands = NULL;