This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository eshell.
View the commit online.
commit 8be9e6ddf676f68112b048963b0c00c330dcd74c
Author: swagtoy <m...@ow.swag.toys>
AuthorDate: Fri Nov 15 18:45:27 2024 -0500
Betterer
---
escript/include/lexer.h | 6 +++---
escript/src/lexer.c | 5 +++--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/escript/include/lexer.h b/escript/include/lexer.h
index 09b5116..6e64c71 100644
--- a/escript/include/lexer.h
+++ b/escript/include/lexer.h
@@ -5,7 +5,7 @@
#ifndef ESCRIPT_LEXER_H
#define ESCRIPT_LEXER_H
#include <stddef.h>
-#include "eina_array.h"
+#include "eina_inarray.h"
enum Escript_Lex_Keywords
{
@@ -74,13 +74,13 @@ enum Escript_Lex_Keywords
struct Escript_Token
{
int x;
-}
+};
struct Escript_Lexer
{
char const* current;
size_t current_len;
- Eina_Array* lex;
+ Eina_Inarray* lex;
};
int escript_lexer_init(struct Escript_Lexer* lex);
diff --git a/escript/src/lexer.c b/escript/src/lexer.c
index 340d621..410424b 100644
--- a/escript/src/lexer.c
+++ b/escript/src/lexer.c
@@ -7,7 +7,7 @@
#include <stdio.h>
#include <string.h>
#include "lexer.h"
-#include "eina_array.h"
+
#define at(i) lex->current[i]
@@ -15,7 +15,7 @@ int
escript_lexer_init(struct Escript_Lexer* lex)
{
// Initialize array
- lex->lex = eina_array_new(sizeof(struct Escript_Token));
+ lex->lex = eina_inarray_new(sizeof(struct Escript_Token), 64);
}
static char const*
@@ -72,4 +72,5 @@ escript_lexer_lex(struct Escript_Lexer* lex, char const* string, size_t string_l
void
escript_lexer_cleanup(struct Escript_Lexer* cleanup)
{
+ eina_inarray_free(cleanup->lex);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.