$exec may now provide a stdin parameter. Deprecated path.append, path.tappend, getcwd, tgetcwd, path.absolute, ls. Deprecated env::get_config_dir, replaced by env::new_get_config_dir. Added path.has_extension, path.new_append, path.temp_append, new_cwd, temp_cwd, path.new_absolute, new_ls, temp_ls. Added dstring.replace Updated win escapes for exec.

This commit is contained in:
Christoffer Lerno
2024-08-14 00:57:25 +02:00
parent 6bc486400c
commit 3ccb4b9ec3
18 changed files with 309 additions and 145 deletions

View File

@@ -87,8 +87,9 @@ bool file_has_suffix_in_list(const char *file_name, int name_len, const char **s
void file_add_wildcard_files(const char ***files, const char *path, bool recursive, const char **suffix_list, int suffix_count);
const char *file_append_path(const char *path, const char *name);
const char *execute_cmd(const char *cmd, bool ignore_failure);
bool execute_cmd_failable(const char *cmd, const char **result);
const char *execute_cmd(const char *cmd, bool ignore_failure, const char *stdin_string);
bool execute_cmd_failable(const char *cmd, const char **result, const char *stdin_string);
void *cmalloc(size_t size);
void *ccalloc(size_t size, size_t elements);
void memory_init(size_t max_mem);