diff options
| author | dam <dam@gudinoff> | 2023-01-28 02:50:11 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2023-01-28 02:50:11 +0000 |
| commit | f68ac18fa17de05df9be2d5f4eb991ebf844298f (patch) | |
| tree | 55dc1459917067ae623c463abb823773eea97afd /ttt.jai | |
| parent | 0063d59f4e073649c34e5d4c5a1341cd094f356e (diff) | |
| download | task-time-tracker-f68ac18fa17de05df9be2d5f4eb991ebf844298f.tar.zst task-time-tracker-f68ac18fa17de05df9be2d5f4eb991ebf844298f.zip | |
Added comments about memory owner.
Diffstat (limited to 'ttt.jai')
| -rw-r--r-- | ttt.jai | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1211,18 +1211,18 @@ main :: () { { // Initialize app directory. - home_dir, success := get_home_directory(); + home_dir, success := get_home_directory(); // Returns system owned memory. if success == false { home_dir = "."; } - app_directory, success = get_absolute_path(home_dir); // TODO Returned in the temporary allocator. + app_directory, success = get_absolute_path(home_dir); // TODO Returns temporary memory. if success == false { print_error("Failed to find home directory '%'.", home_dir); return; } - app_directory = join(app_directory, "/", APP_FOLDER_NAME, allocator = temp); + app_directory = join(app_directory, "/", APP_FOLDER_NAME, allocator = temp); // TODO Change to default allocator because we want to keep this during runtime. // TODO DEBUG // Check what's going on with the temp allocator: // Is it really the responsible for these paths? @@ -1233,8 +1233,8 @@ main :: () { // print_error("Failed to create app directory '%'.", app_directory); // return; // } - db_file_path = join(app_directory, "/", DB_FILE_NAME, allocator = temp); - ar_file_path = join(app_directory, "/", AR_FILE_NAME, allocator = temp); + db_file_path = join(app_directory, "/", DB_FILE_NAME, allocator = temp); // TODO Change to default allocator because we want to keep this during runtime. + ar_file_path = join(app_directory, "/", AR_FILE_NAME, allocator = temp); // TODO Change to default allocator because we want to keep this during runtime. } return; // TODO DEBUG |
