Core library and Better name mangling for files

This commit is contained in:
Ginger Bill
2016-09-19 11:51:21 +01:00
parent 828095afd1
commit bbc9739f5c
11 changed files with 1643 additions and 113 deletions

View File

@@ -2752,7 +2752,6 @@ String get_fullpath_relative(gbAllocator a, String base_dir, String path) {
gb_memcopy(str, base_dir.text, base_dir.len);
gb_memcopy(str+base_dir.len, path.text, path.len);
str[str_len] = '\0';
// HACK(bill): memory leak
char *path_str = gb_path_get_full_name(a, cast(char *)str);
return make_string(path_str);
}
@@ -2779,7 +2778,6 @@ String get_fullpath_core(gbAllocator a, String path) {
gb_memcopy(str+buf_len, core, core_len);
gb_memcopy(str+buf_len+core_len, path.text, path.len);
str[str_len] = '\0';
// HACK(bill): memory leak
char *path_str = gb_path_get_full_name(a, cast(char *)str);
return make_string(path_str);}