summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-10-15 15:23:58 -0400
committerpommicket <pommicket@gmail.com>2023-10-15 15:23:58 -0400
commita01d4de1e2feda34a20bb8dd65ec76fef3c20d6b (patch)
treec24f71d8536663d6758a14194b50508041cc03ec /build.c
parent479219152b85b2cf12e5bfee6fdebca033355beb (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.c b/build.c
index df9a140..5df00fc 100644
--- a/build.c
+++ b/build.c
@@ -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;