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 /build.c | |
parent | 479219152b85b2cf12e5bfee6fdebca033355beb (diff) |
use reference-counted strings for string settings
this lets us remove the length limitations which were previously imposed
Diffstat (limited to 'build.c')
-rw-r--r-- | build.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -104,7 +104,7 @@ void build_start_with_command(Ted *ted, const char *command) { void build_start(Ted *ted) { const Settings *settings = ted_active_settings(ted); - const char *command = settings->build_command; + const char *command = rc_str(settings->build_command, ""); { char *root = ted_get_root_dir(ted); @@ -113,7 +113,7 @@ void build_start(Ted *ted) { } if (*command == 0) { - command = settings->build_default_command; + command = rc_str(settings->build_default_command, ""); typedef struct { const char *filename; const char *command; |