aboutsummaryrefslogtreecommitdiff
path: root/include/lexer.h
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-08-09 12:16:04 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-08-09 12:16:04 +0530
commit1acd74f76716c078015700b04c5e1c7b1b4f7556 (patch)
treeef18042a3631ecda0cf11f6affd184e50895f931 /include/lexer.h
parent66c403c79e64dbe96fc080ff74e87db2102f93f3 (diff)
lexer,engine: use strlen(content) instead of length
I can't remember why I added length instead of using strlen(content). If this breaks anything it would be a pain to debug. In my little testing though, it seems to be working fine.
Diffstat (limited to 'include/lexer.h')
-rw-r--r--include/lexer.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/lexer.h b/include/lexer.h
index ae64759..f7a851a 100644
--- a/include/lexer.h
+++ b/include/lexer.h
@@ -46,11 +46,9 @@ typedef struct {
void *operands;
} directive_t;
-/* TODO: strlen(content) instead of length? */
typedef struct {
char *key;
char *content;
- size_t length;
} contentfor_operand_t;
typedef struct {