aboutsummaryrefslogtreecommitdiff
path: root/include/lexer.h
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-07-28 08:05:50 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-07-28 08:05:50 +0530
commit6a212565304bd4b3836762e4e9b3467ee2afe9d2 (patch)
tree493ac20587d3c51c347549cfac2ba2107d1ba0d0 /include/lexer.h
parent24f021821be3cd738a16b441f8dcf94e86e19b3a (diff)
Revert "lexer: lex() must also return matches"
This reverts commit b2969a13af3faf10a38385cbb2a45e144e80a608.
Diffstat (limited to 'include/lexer.h')
-rw-r--r--include/lexer.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/lexer.h b/include/lexer.h
index 7d9a955..d62b0d3 100644
--- a/include/lexer.h
+++ b/include/lexer.h
@@ -39,12 +39,7 @@ typedef struct {
char *content;
} eachdo_operands_t;
-typedef struct {
- list_t *matches;
- list_t *directives;
-} lex_t;
-
-lex_t *lex(char *buffer);
+list_t *lex(char *buffer);
directive_t *find_directive(char *content, key_match_t *match);
key_match_t *find_next_key(char *buffer, size_t skip);
char *find_contentfor_value(list_t *content_headers, char *key);