From f68ac18fa17de05df9be2d5f4eb991ebf844298f Mon Sep 17 00:00:00 2001 From: dam Date: Sat, 28 Jan 2023 02:50:11 +0000 Subject: Added comments about memory owner. --- ttt.jai | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ttt.jai') 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 -- cgit v1.2.3