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 d30ad08c0733e14f465b7b2e0f2ed044747a3e42
Author: Swagtoy <m...@ow.swag.toys>
AuthorDate: Fri Nov 22 01:57:30 2024 -0500

    lexer: Fix naming
---
 escript/include/lexer.h     | 4 ++--
 escript/include/stringify.h | 2 +-
 escript/src/stringify.c     | 4 ++--
 escript/src/stringify.h     | 1 -
 4 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/escript/include/lexer.h b/escript/include/lexer.h
index ebc5cd1..c3f9fdd 100644
--- a/escript/include/lexer.h
+++ b/escript/include/lexer.h
@@ -9,7 +9,7 @@
 #include <stddef.h>
 #include "eina_inarray.h"
 #include "eina_strbuf.h"
-enum Escript_Lex_Keywords
+enum Escript_Lex_Tokens
 {
 	ELEX_WHILE,
 	ELEX_IF,
@@ -79,7 +79,7 @@ struct Escript_Token_String
 
 struct Escript_Token
 {
-	enum Escript_Lex_Keywords token; // union member
+	enum Escript_Lex_Tokens token; // union member
 	union Escript_Token_Data {
 		struct Escript_Token_String d_string; // it hurts!!
 		int d_int;
diff --git a/escript/include/stringify.h b/escript/include/stringify.h
index 2ffb684..e871542 100644
--- a/escript/include/stringify.h
+++ b/escript/include/stringify.h
@@ -9,6 +9,6 @@
 #define ESCRIPT_STRINGIFY_H
 
 char const* const
-escript_lexer_token_to_string(struct Escript_Token* token);
+escript_lexer_token_to_string(enum Escript_Lex_Tokens token);
 
 #endif // ESCRIPT_STRINGIFY_H
diff --git a/escript/src/stringify.c b/escript/src/stringify.c
index faf2d04..94d3797 100644
--- a/escript/src/stringify.c
+++ b/escript/src/stringify.c
@@ -11,10 +11,10 @@
 #include "lexer.h"
 
 char const* const
-escript_lexer_token_to_string(struct Escript_Token* token)
+escript_lexer_token_to_string(enum Escript_Lex_Tokens token)
 {
 #define STR_TOK(x) case ELEX_ ## x: return #x;
-	switch (token->token)
+	switch (token)
 	{
 	STR_TOK(WHILE)
 	STR_TOK(IF)
diff --git a/escript/src/stringify.h b/escript/src/stringify.h
deleted file mode 100644
index 8b13789..0000000
--- a/escript/src/stringify.h
+++ /dev/null
@@ -1 +0,0 @@
-

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to