aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordam <dam@gudinoff>2023-01-28 02:50:11 +0000
committerdam <dam@gudinoff>2023-01-28 02:50:11 +0000
commitf68ac18fa17de05df9be2d5f4eb991ebf844298f (patch)
tree55dc1459917067ae623c463abb823773eea97afd
parent0063d59f4e073649c34e5d4c5a1341cd094f356e (diff)
downloadtask-time-tracker-f68ac18fa17de05df9be2d5f4eb991ebf844298f.tar.zst
task-time-tracker-f68ac18fa17de05df9be2d5f4eb991ebf844298f.zip
Added comments about memory owner.
-rw-r--r--ttt.jai10
1 files changed, 5 insertions, 5 deletions
diff --git a/ttt.jai b/ttt.jai
index 3be8718..17de73b 100644
--- a/ttt.jai
+++ b/ttt.jai
@@ -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