0ad/source/lib/res/file
janwas 1227cb2f6d adts: add RingBuf self-test. RingBuf: make entry#0 the 'head' and pop_front a no-op if empty.
allocators: allow pool_create at NLSO ctor time
lib: add rand() function based on libc rand and self-test. (this allows
easily returning a random number within a range, and avoids a number of
pitfalls - the naive rand()%range approach is baaad)
precompiled: add self_test.h, so that self tests won't be accidentally
disabled by forgetting to include the header

file_cache: add self-test; fixed 2 bugs that exposed (was incorrectly
splitting large blocks and not setting class_size bit properly). fix
weird corner case in BlockMgr (attempting to free LRU block but it is
locked).

file_io, wdbg_sym: tiny fixes

This was SVN commit r3461.
2006-02-03 04:02:53 +00:00
..
archive.cpp allocators: bugfix (wasn't setting freelist to 0) 2006-01-31 03:47:52 +00:00
archive.h allocators: bugfix (wasn't setting freelist to 0) 2006-01-31 03:47:52 +00:00
compression.cpp allocators: bugfix (wasn't setting freelist to 0) 2006-01-31 03:47:52 +00:00
compression.h Cache: implement meat of landlord algorithm and add remove() 2006-01-28 22:19:42 +00:00
file_cache.cpp adts: add RingBuf self-test. RingBuf: make entry#0 the 'head' and pop_front a no-op if empty. 2006-02-03 04:02:53 +00:00
file_cache.h allocators: bugfix (wasn't setting freelist to 0) 2006-01-31 03:47:52 +00:00
file_internal.h Cache: implement meat of landlord algorithm and add remove() 2006-01-28 22:19:42 +00:00
file_io.cpp adts: add RingBuf self-test. RingBuf: make entry#0 the 'head' and pop_front a no-op if empty. 2006-02-03 04:02:53 +00:00
file_io.h Cache: implement meat of landlord algorithm and add remove() 2006-01-28 22:19:42 +00:00
file_stats.cpp file_cache: bugfix in CacheAllocator 2006-01-31 07:48:32 +00:00
file_stats.h Cache: implement meat of landlord algorithm and add remove() 2006-01-28 22:19:42 +00:00
file.cpp allocators: bugfix (wasn't setting freelist to 0) 2006-01-31 03:47:52 +00:00
file.h allocators: bugfix (wasn't setting freelist to 0) 2006-01-31 03:47:52 +00:00
vfs_mount.cpp file_cache: bugfix in CacheAllocator 2006-01-31 07:48:32 +00:00
vfs_mount.h v2 of file/res code for thesis: 2006-01-23 20:05:09 +00:00
vfs_optimizer.cpp adts: optimize landlord algorithm at advisor's request (only relevant if we have tons of files in cache) 2006-02-02 04:11:07 +00:00
vfs_optimizer.h adts: optimize landlord algorithm at advisor's request (only relevant if we have tons of files in cache) 2006-02-02 04:11:07 +00:00
vfs_path.cpp allocators: bugfix (wasn't setting freelist to 0) 2006-01-31 03:47:52 +00:00
vfs_path.h allocators: bugfix (wasn't setting freelist to 0) 2006-01-31 03:47:52 +00:00
vfs_tree.cpp fix crash that happened after editing file while game is running. vfs_tree's tree_root object was being destroyed but not recreated when rebuilding the VFs tree. fixed that as well as correctly freeing all TNode memory upon rebuild. 2006-02-02 05:20:33 +00:00
vfs_tree.h allocators: bugfix (wasn't setting freelist to 0) 2006-01-31 03:47:52 +00:00
vfs.cpp adts: optimize landlord algorithm at advisor's request (only relevant if we have tons of files in cache) 2006-02-02 04:11:07 +00:00
vfs.h - vfs_load now returns error code and takes FileIOBuf; that must be freed via file_buf_free. if Handle is needed, use mem_wrap. 2006-01-24 08:16:29 +00:00
zip.cpp allocators: bugfix (wasn't setting freelist to 0) 2006-01-31 03:47:52 +00:00
zip.h Cache: implement meat of landlord algorithm and add remove() 2006-01-28 22:19:42 +00:00