aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-07-10 21:51:58 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-07-10 21:51:58 +0530
commit4cfa655dc608a87ec657f29952be8b4cca57f2bf (patch)
treecc020b81032cbf69475ae294a5269db9e628bb5a
parent15305a850eb96a08c90b5a9d415f0439a96bc4ec (diff)
lexer: lex_file->lex
-rw-r--r--include/lexer.h2
-rw-r--r--src/lexer.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/lexer.h b/include/lexer.h
index ce761dd..f5ab375 100644
--- a/include/lexer.h
+++ b/include/lexer.h
@@ -28,7 +28,7 @@ typedef struct {
unsigned int length;
} contentfor_operand_t;
-list_t *lex_file(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);
diff --git a/src/lexer.c b/src/lexer.c
index ad6d038..9366be7 100644
--- a/src/lexer.c
+++ b/src/lexer.c
@@ -9,7 +9,7 @@
#include <string.h>
list_t *
-lex_file(char *buffer)
+lex(char *buffer)
{
list_t *directives = list_create(sizeof(directive_t));
size_t current_offset = 0;