summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-01 23:38:51 -0500
committerpommicket <pommicket@gmail.com>2023-01-01 23:38:51 -0500
commit8c16344d5279eef6ed6ad18d4de7e8a2a5bf2f98 (patch)
treee56a9102b9317b51ace48ce0cba37d5397d6105b /build.c
parent94b241351c7418c2f6a32cc01b889bc48478c50d (diff)
char const => const char
Diffstat (limited to 'build.c')
-rw-r--r--build.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.c b/build.c
index 04a9488..5865daf 100644
--- a/build.c
+++ b/build.c
@@ -24,7 +24,7 @@ static void build_queue_start(Ted *ted) {
}
// add a command to the build queue
-static void build_queue_command(Ted *ted, char const *command) {
+static void build_queue_command(Ted *ted, const char *command) {
char *copy = str_dup(command);
if (copy)
arr_add(ted->build_queue, copy);
@@ -75,7 +75,7 @@ static void build_queue_finish(Ted *ted) {
}
// make sure you set ted->build_dir before running this!
-static void build_start_with_command(Ted *ted, char const *command) {
+static void build_start_with_command(Ted *ted, const char *command) {
build_queue_start(ted);
build_queue_command(ted, command);
build_queue_finish(ted);
@@ -159,7 +159,7 @@ static int parse_nonnegative_integer(char32_t **str, char32_t *end) {
// could this character (reasonably) appear in a source file path?
static bool is_source_path(char32_t c) {
- char const *allowed_ascii_symbols_in_path = "./\\-_:";
+ const char *allowed_ascii_symbols_in_path = "./\\-_:";
return c > CHAR_MAX || isalnum((char)c)
|| strchr(allowed_ascii_symbols_in_path, (char)c);
}