aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-11 17:54:00 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-11 17:54:00 +0200
commiteb83baa6fe37b9583b24d404166e4ef7b3e3b56e (patch)
tree351051a7d5d8843e822a23f0083deab8a5821d7e
parente478fe30a110cbd2ba8bd48b2642c5206364bf2c (diff)
Be consistent with the *_t_ suffix for typedefs
-rw-r--r--src/lexer.h6
-rw-r--r--src/parser.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lexer.h b/src/lexer.h
index 0deaa73..edd9225 100644
--- a/src/lexer.h
+++ b/src/lexer.h
@@ -37,12 +37,12 @@ enum {
LEXRANGL_DBL = UINT8_MAX - 0, /* >> */
};
-typedef uint8_t lexeme_kind;
+typedef uint8_t lexeme_kind_t_;
-#define LEXEMES_SOA_BLKSZ (sizeof(lexeme_kind) + sizeof(struct strview))
+#define LEXEMES_SOA_BLKSZ (sizeof(lexeme_kind_t_) + sizeof(struct strview))
struct lexemes_soa {
- lexeme_kind *kinds;
+ lexeme_kind_t_ *kinds;
struct strview *strs;
size_t len, cap;
};
diff --git a/src/parser.h b/src/parser.h
index 5398162..c2bbac0 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -46,13 +46,13 @@ enum {
ASTBINSUB = '-',
};
-typedef uint8_t ast_kind;
+typedef uint8_t ast_kind_t_;
#define AST_EMPTY ((idx_t_)-1)
-#define AST_SOA_BLKSZ (sizeof(ast_kind) + sizeof(idx_t_) * 3)
+#define AST_SOA_BLKSZ (sizeof(ast_kind_t_) + sizeof(idx_t_) * 3)
struct ast_soa {
- ast_kind *kinds;
+ ast_kind_t_ *kinds;
idx_t_ *lexemes;
struct {
idx_t_ lhs, rhs;