aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-09 11:44:14 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-09 11:44:14 +0200
commit6fbe50be1c3297680e2a9802923907638193e234 (patch)
tree589c3876d879d3720e5086897bccf1b9dc6015a1 /src
parentcfaf2f58f51ca71818a3c322eb13532109f7020e (diff)
Use CHAR_BIT
Diffstat (limited to 'src')
-rw-r--r--src/lexer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lexer.c b/src/lexer.c
index 5196c64..6aa59c5 100644
--- a/src/lexer.c
+++ b/src/lexer.c
@@ -1,6 +1,7 @@
#include <assert.h>
#include <errno.h>
#include <inttypes.h>
+#include <limits.h>
#include <stdalign.h>
#include <stdbool.h>
#include <stddef.h>
@@ -19,7 +20,8 @@
# define unlikely(x) (x)
#endif
-#define SIZE_WDTH (sizeof(size_t) * 8)
+#define LEXEMES_DFLT_CAP (2048)
+#define SIZE_WDTH (sizeof(size_t) * CHAR_BIT)
static bool skip_comment(const uchar **, const uchar *);