diff options
| -rw-r--r-- | ttt.jai | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -753,9 +753,14 @@ load_database :: (db: *Database, path: string) -> success: bool { db.tasks.data = alloc(db.tasks.count * size_of(Task)); db.capacity = db.tasks.count; + // Read database tasks. + file_read(file, db.tasks.data, size_of(Task) * db.tasks.count); // TODO WIP WIP WIP Does this generate stable memory or temporary? + // Make sure we are reading all the file. + // TODO Clean this. WIP WIP WIP buffer: [1] u8; success, bytes := file_read(file, *buffer, 1); + print("'%'\n", buffer); assert(bytes == 0); print("done importing CSV with a bunch of hacks\n"); |
