diff options
| author | nasr <nsrddyn@gmail.com> | 2026-03-05 22:42:55 +0000 |
|---|---|---|
| committer | nasr <nsrddyn@gmail.com> | 2026-03-05 22:42:55 +0000 |
| commit | d8c52d6c408a172f1210c77df3e3a9629ea68dc6 (patch) | |
| tree | 8125ad25c4b9a1a94d8a77b4daa19ca06479fc1d /source/base | |
| parent | aa2bee82ac82ff47c6be84f2e6d39c690ec66a21 (diff) | |
feature(main): helper functions for lexing
refactor(main): helper script for testing to gitignore
Diffstat (limited to 'source/base')
| -rw-r--r-- | source/base/base_string.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/base/base_string.h b/source/base/base_string.h index 64a3162..189b38a 100644 --- a/source/base/base_string.h +++ b/source/base/base_string.h | |||
| @@ -47,4 +47,13 @@ string8_append_char(string8 *buf, u8 c) | |||
| 47 | buf->size += 1; | 47 | buf->size += 1; |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | read_only global_variable | ||
| 51 | string8 nil_string = | ||
| 52 | { | ||
| 53 | |||
| 54 | .data = NULL, | ||
| 55 | .size = 0, | ||
| 56 | |||
| 57 | }; | ||
| 58 | |||
| 50 | #endif /* BASE_STRING_H */ | 59 | #endif /* BASE_STRING_H */ |
