aboutsummaryrefslogtreecommitdiff
path: root/unused.jai
diff options
context:
space:
mode:
authordam <dam@gudinoff>2023-04-06 16:51:38 +0100
committerdam <dam@gudinoff>2023-04-06 16:51:38 +0100
commit1c54c3afa2677c001836f84c66cdff1f381e79fe (patch)
tree5daa28cfe39ccd15ab514aec1ea465b4f4b1d1fd /unused.jai
parentd892449ee36a63ddf1bdac2fbf14f3ccaabef8fc (diff)
downloadtask-time-tracker-1c54c3afa2677c001836f84c66cdff1f381e79fe.tar.zst
task-time-tracker-1c54c3afa2677c001836f84c66cdff1f381e79fe.zip
Remove obsolete code and allow archive toggle.
Diffstat (limited to 'unused.jai')
-rw-r--r--unused.jai25
1 files changed, 25 insertions, 0 deletions
diff --git a/unused.jai b/unused.jai
index 264fa88..a218aef 100644
--- a/unused.jai
+++ b/unused.jai
@@ -1,5 +1,30 @@
print(">%<", S64_MIN + delta, to_standard_error = true);
+
+// TODO DEBUG
+print_owner_allocator :: (tag: string, memory: *void) {
+ owner := "unkown";
+
+ if true == xx context.allocator.proc(.IS_THIS_YOURS, 0, 0, memory, null) then owner = "default";
+ else if true == xx temp.proc(.IS_THIS_YOURS, 0, 0, memory, null) then owner = "temp";
+
+ print("'%' belongs to '%'\n", tag, owner);
+}
+// TODO DEBUG
+print_database :: (db: Database) {
+ for db.tasks {
+ print("% | % : % : % : % : % : % : %\n", cast(string)it.name,
+ it.times[0],
+ it.times[1],
+ it.times[2],
+ it.times[3],
+ it.times[4],
+ it.times[5],
+ it.times[6]
+ );
+ }
+}
+
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- //