diff options
author | pommicket <pommicket@gmail.com> | 2023-10-15 15:23:58 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-10-15 15:23:58 -0400 |
commit | a01d4de1e2feda34a20bb8dd65ec76fef3c20d6b (patch) | |
tree | c24f71d8536663d6758a14194b50508041cc03ec /ted-internal.h | |
parent | 479219152b85b2cf12e5bfee6fdebca033355beb (diff) |
use reference-counted strings for string settings
this lets us remove the length limitations which were previously imposed
Diffstat (limited to 'ted-internal.h')
-rw-r--r-- | ted-internal.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ted-internal.h b/ted-internal.h index 5594adc..fe377a4 100644 --- a/ted-internal.h +++ b/ted-internal.h @@ -151,23 +151,23 @@ struct Settings { GlRcSAB *bg_shader; GlRcTexture *bg_texture; /// string used to start comments - char comment_start[16]; + RcStr *comment_start; /// string used to end comments - char comment_end[16]; + RcStr *comment_end; /// Comma-separated list of file names which identify the project root - char root_identifiers[4096]; + RcStr *root_identifiers; /// LSP server command - char lsp[512]; + RcStr *lsp; /// LSP "configuration" JSON - char lsp_configuration[4096]; + RcStr *lsp_configuration; /// Build command. If non-empty, this overrides running `cargo build` if `Cargo.toml` exists, etc. - char build_command[1024]; + RcStr *build_command; /// Default build command for if `Cargo.toml`, `Makefile`, etc. do not exist. - char build_default_command[1024]; + RcStr *build_default_command; /// Comma separated list of paths to font files. - char font[4096]; + RcStr *font; /// Comma separated list of paths to bold font files. - char font_bold[4096]; + RcStr *font_bold; LanguageExtension *language_extensions; /// dynamic array, sorted by KEY_COMBO(modifier, key) KeyAction *key_actions; |