diff options
| author | dam <dam@gudinoff> | 2023-04-06 16:51:38 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2023-04-06 16:51:38 +0100 |
| commit | 1c54c3afa2677c001836f84c66cdff1f381e79fe (patch) | |
| tree | 5daa28cfe39ccd15ab514aec1ea465b4f4b1d1fd /unused.jai | |
| parent | d892449ee36a63ddf1bdac2fbf14f3ccaabef8fc (diff) | |
| download | task-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.jai | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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] + ); + } +} + // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- // |
