From 1c54c3afa2677c001836f84c66cdff1f381e79fe Mon Sep 17 00:00:00 2001 From: dam Date: Thu, 6 Apr 2023 16:51:38 +0100 Subject: Remove obsolete code and allow archive toggle. --- unused.jai | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'unused.jai') 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] + ); + } +} + // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- // -- cgit v1.2.3