Commit Graph

357 Commits

Author SHA1 Message Date
2b536ff053 [ox/model] Fix storng int Error errors 2019-07-29 22:58:06 -05:00
ff4adaebf1 [ox/mc] Fix FieldPresenceIndicator to return correct value when overflow occurs 2019-07-29 22:55:17 -05:00
142387aa04 [ox/std] Improve ability to create unique int types, regardless of underlying type 2019-07-28 00:57:50 -05:00
f4b336dd77 [ox] Make Error use a strong int 2019-07-28 00:15:10 -05:00
3c86aae616 [ox/std] Fix several problems that arose when trying to use strong ints 2019-07-27 23:56:49 -05:00
6485a780a7 [ox/std] Add strongly typed integer wrapper 2019-07-26 21:32:42 -05:00
c87e92da71 [ox/ptrarith] Add nodiscard to Error return of NodeBuffer::compact 2019-07-25 20:05:00 -05:00
deaa1f13f5 [ox/fs] Add missing nodiscards on ox::Error returns 2019-07-25 19:53:14 -05:00
d53430abbc [ox/std] Give AllocAlias separate size option 2019-07-24 07:58:52 -05:00
2d2cd2bbb6 [ox/fs] Add Error return to FileStore compact 2019-07-20 18:46:52 -05:00
22378d0a9f [ox/std] Fix alignment of Vector elements 2019-07-19 22:11:01 -05:00
32d7c7b9e2 [ox/std] Fix syntax error in std::is_union_v 2019-07-19 22:10:32 -05:00
8fa5488d77 [ox/fs] Fix FileStoreTemplate::compact to skip first item and correctly find parent 2019-07-19 20:14:09 -05:00
31b75d1e50 [ox/ptrarith] Fix NodeBuffer::compact to iterate over items when item already in correct location 2019-07-19 19:53:50 -05:00
d55089b582 [ox/ptrarith] Fix NodeBuffer::compact to correclty update dest.prev 2019-07-18 20:31:51 -05:00
cb8f26046a [ox/fs] Cleanup Directory test 2019-07-17 21:36:03 -05:00
969af651d3 [ox/fs] Add error return to resize 2019-07-17 21:35:07 -05:00
fb4a768415 [ox/fs] Add better error handling to Directory 2019-07-17 21:31:12 -05:00
25c629f570 [ox/ptrarith] Expand tests 2019-07-17 21:25:33 -05:00
ea2bf8998b [ox/clargs] Link with OxStd 2019-07-17 21:17:10 -05:00
0efe94db45 [ox/fs] Fix extraneous alloc and update rootInode in compact 2019-07-17 20:43:14 -05:00
dc03e01cf8 [ox/ptrarith] Fix NodeBuffer::malloc to correctly update the old last's prev 2019-07-17 20:12:28 -05:00
ffce1dc4df [ox/std] Fix warning about unused private variable 2019-07-16 18:36:45 -05:00
02d92449f9 [ox/std] Add is_union_v and is_class_v 2019-07-15 18:15:14 -05:00
0b218f57c2 [ox/std] Fix Vector copy assignment to allocate as char* 2019-07-15 18:10:00 -05:00
16a09d6814 [ox/std] Make Vector only call constructor and destructor on valid items 2019-07-12 22:48:10 -05:00
806eaa229a [ox/std] Add log message for asserts 2019-07-08 23:18:54 -05:00
7b034be393 [ox/ptrarith] Add asserts to Ptr::operator T* 2019-07-08 23:13:30 -05:00
d4212abe3b [ox/fs] Fix PassthroughFS to pull in defines from header before check 2019-07-07 22:08:39 -05:00
ee9cdbe1e7 [ox/fs] Fix issues with PassthroughFS Boost port 2019-07-06 01:49:28 -05:00
845373e049 [ox/fs] Make macOS builds use Boost FileSystem 2019-07-06 00:09:42 -05:00
6493a5e10e [ox/ptrarith] Disable ptrarith tests when OX_RUN_TESTS is not set 2019-06-29 23:52:43 -05:00
41d6c7188c [ox] Remove -Wshadow, too pedantic 2019-06-28 23:56:17 -05:00
959807c08b [ox/model] Fix name shadowing 2019-06-26 23:47:10 -05:00
8730c6380c [ox] Add -Wshadow warning 2019-06-26 21:54:41 -05:00
472249cd6d [ox] Ensure all gdblogger messages always end with a new line 2019-06-26 20:45:48 -05:00
0c7f8c8b5e [ox/nodebuffer] Fix bounds checking in Ptr generation 2019-06-25 08:19:59 -05:00
3adf0df9c7 [ox/ptrarith] Fix NodeBuffer to properly handle removing only node 2019-06-25 00:39:49 -05:00
6571129686 [ox/fs] Add resize compactor 2019-06-22 17:23:24 -05:00
baff558ff2 [ox/fs] Enforce error handling in Directory 2019-06-22 11:52:55 -05:00
74fe0c55cc [ox/fs] Enforce error checking of FS function calls 2019-06-22 02:07:20 -05:00
04929302d7 [ox/fs] Rename confusing parameters in FileStoreTemplate::read 2019-06-22 00:40:23 -05:00
3938cb0282 [ox/fs] Cleanup FileStoreTemplate::read 2019-06-21 23:30:06 -05:00
db04367579 [ox/fs] Cleanup hard-to-read code 2019-06-20 23:24:36 -05:00
c87eed730e [ox/fs] Fix Ox FS tests to run again 2019-06-20 23:24:03 -05:00
7b6b53b7d3 [ox/fs] Remove unused parents parameter from Director::write 2019-06-20 22:55:26 -05:00
a204aa8c48 [ox/fs] Move large test allocations to heap 2019-06-20 21:41:32 -05:00
8e82ba2f2e [ox/fs] Fix mkdir -p 2019-06-20 20:42:25 -05:00
ad85c59107 [ox] Fix CMake inconsistency that broke PC builds 2019-06-19 23:32:59 -05:00
5705fd3d00 [ox/std] Add OX_USE_STDLIB as exported definition on OxStd 2019-06-19 23:32:18 -05:00
6ace1e641c [ox/std] Add units.hpp to std.hpp and CMake install 2019-06-16 22:43:19 -05:00
5ceb0e5f83 [ox/std] Add memory unit consts (KB, MB, GB, TB) 2019-06-16 22:08:10 -05:00
5834201fbb [ox/std] Add ValErr support to oxReturnError 2019-06-16 19:00:47 -05:00
98d045827e [ox/std] Fix placement new declaration to use stdlib declaration if available 2019-06-16 01:04:57 -05:00
14a40bdcd6 [ox/std] Remove usage of stdlib from substitutes... 2019-06-16 00:53:21 -05:00
47ce0408d5 [ox/std] Add substitutes file with missing __cxa_pure_virtual handler 2019-06-15 23:24:58 -05:00
de210c5c7e [ox/fs] Cleanup 2019-06-15 12:16:11 -05:00
36d8aeabd3 [ox] Fix incorrect setting of build config when passed in from another CMakeLists.txt 2019-06-15 09:44:04 -05:00
30ff7be0e4 [ox] Make code only compile as PIC if a bare metal build 2019-06-15 02:39:46 -05:00
238bc58f66 [ox/std] Fix several issues found compiling on FreeBSD 2019-06-14 19:36:46 -05:00
2b60c04f1a [ox/std] Add gcc library as dependency when building with GCC 2019-06-14 18:19:43 -05:00
1bf3809b47 [ox] Merge branch 'master' of github.com:gtalent/nostalgia 2019-06-14 18:13:50 -05:00
22c9e4bdb2 [ox] Remove OC reference 2019-06-14 07:53:00 -05:00
11029c93c8 [ox/std] Add missing ARM7TDMI functions, some are just stubs for now 2019-06-14 07:50:38 -05:00
096509c2be [ox] Fix GCC errors 2019-06-06 18:50:06 -05:00
05c0eb2f78 [ox/fs] Add base path access to PassthroughFS 2019-03-30 17:13:56 -05:00
5dbe160633 [ox/std] Uglify OxError parameter name to prevent name conflicts 2019-03-30 17:13:03 -05:00
2830eb76b6 [ox] Fix setup_build script for GBA 2019-03-18 22:33:09 -05:00
f191ade18b [ox/mc] Make VLI encode/decode constexpr 2019-03-18 19:26:58 -05:00
b33cd06031 [ox] Get building with devkitARM again 2019-03-18 00:19:04 -05:00
22da505869 [ox/fs] Remove bad debug code from FileStore::unplaceItem 2019-03-17 23:18:54 -05:00
fa3f7801d2 [ox/fs] Remove inode on decLinks if links is 0 2019-03-17 23:16:41 -05:00
7cfe9aad8e [ox/fs] Properly implement FileStore unplaceItem and move ! to correct canWrite 2019-03-17 23:14:17 -05:00
245eba8d5b [ox/fs] Switch some FS test asserts to check for ox::Error instead of 0 2019-03-17 22:39:59 -05:00
07112682c6 [ox/ptrarith] Fix compact not to cycle back to start 2019-03-17 22:39:20 -05:00
7a2033da60 [ox/fs] Fix unnecessary FileStore compacting 2019-03-17 22:37:42 -05:00
c9d816503d [ox/std] Fix string number/char* append 2019-03-17 17:57:17 -05:00
52b9316858 [ox/std] Replace int with ox::Error where appropriate 2019-03-17 14:13:49 -05:00
d139eb9729 [ox/std] Move std::size_t delcaration to beginning of std/types.hpp 2019-03-17 13:21:04 -05:00
bbd1d187b2 [ox/model] Rename ioOp and op to model and field 2019-03-17 13:18:46 -05:00
bf6469b4a3 [ox] Rename Serialization package to Model 2019-03-17 13:04:18 -05:00
cf7ba595aa [ox/std] Cleanup 2019-03-17 03:05:00 -05:00
e0605edb6e [ox/mc] Use VLI encoding for integers 2019-03-17 03:04:39 -05:00
817e3fcef1 [ox/mc] Add bytes read to decodeInteger and fix overreading 2019-03-17 01:11:12 -05:00
df44abc316 [ox/mc] Add VLI decode 2019-03-17 00:04:00 -05:00
341dbf14ae [ox/mc] Fix VLI encoding not to chop off ends of >24 bit integers 2019-03-16 23:54:53 -05:00
1780657789 [ox/std] Add Siged and Unsiged templates 2019-03-16 15:50:37 -05:00
585ff0a1fe [ox/std] Add raw to byteswap type 2019-03-16 14:51:09 -05:00
9f805f761d [ox/std] Add noexcept to bitops functions 2019-03-16 14:50:32 -05:00
10b3757558 [ox/std] Add is_signed 2019-03-16 14:49:16 -05:00
e4aab88831 [ox/mc] Fix VLI encoding to handle negatives 2019-03-16 14:41:43 -05:00
a9b7b00011 [ox/ser] Fix to use Error instead of int 2019-03-16 14:39:50 -05:00
80dd6282f5 [ox/std] Add integer size templates 2019-03-16 14:28:11 -05:00
17fc48aa26 [ox/mc] Finish encoding for variable length integers 2019-03-15 01:30:38 -05:00
e31f51648c [ox/ser] Cleanup 2019-03-13 17:53:33 -05:00
538fcdb43c [ox/ser] Rename McStr to SerStr 2019-03-08 21:26:21 -06:00
4330c015a5 [ox/ser] Fix byte lengths of integer types 2019-03-08 00:21:33 -06:00
e45122184e [ox/mc] Rename FieldPresenceMask to FieldPresenceIndicator 2019-03-07 23:00:59 -06:00
f218ec44af [ox] Split generalizable portion MC into ser package 2019-03-07 21:47:46 -06:00
fa1cf8bb73 [ox] Prefix build setup targets with configure- 2019-03-07 18:04:57 -06:00