Commit Graph

418 Commits

Author SHA1 Message Date
680881003c [ox/mc] Fix false positive buffer overflow check when string is last item in MC buffer 2020-03-31 20:40:29 -05:00
d7b5f51fdc [ox/mc] Prevent reading array length of absent array 2020-03-30 23:59:01 -05:00
4011773374 [ox/std] Add insert method to Vector 2020-03-29 13:32:17 -05:00
aa1b5fa4cf [ox/std] Add missing declaration for String::String(const String&) 2020-03-19 01:56:44 -05:00
4273e72e74 [ox/std] Add copy constructor to String 2020-03-16 00:12:09 -05:00
e0a2676d54 [ox/std] Add String::operator=(const String&) 2020-03-15 14:31:43 -05:00
1313b562bd [ox] Remove bstring.hpp include from string.hpp 2020-03-15 14:29:18 -05:00
f7bdd5042d [ox/std] Add String::operator+ methods 2020-03-15 02:17:11 -05:00
412b187c4f [ox/std] Add bstring.hpp to install 2020-03-15 01:20:28 -05:00
38acb5dfc3 [nostalgia/std] Add String as alternative to BString, which uses heap allocations 2020-03-14 16:33:08 -05:00
4571a95a06 [ox] Fix OxConfig to include Model library 2020-02-16 14:08:28 -06:00
da3c9107db [ox/std] Fix type in hardware detection 2020-02-16 02:03:28 -06:00
74e6a4cbff [ox/std] Fix oxPanic parameter order 2020-02-16 01:43:54 -06:00
36b6542bf3 [ox/std] Fix hardware detection to work in MSVC 2020-02-15 12:24:43 -06:00
c2b4595c33 [ox/std] Make unrecognized hardware trigger compile error 2020-02-12 22:13:34 -06:00
c5f0825edb [ox/mc] Fix signed/unsigned comparison in field bitmap 2020-02-12 22:04:35 -06:00
517551348a [ox/fs] Fix GCC/Clang incompatibility 2020-02-12 22:04:35 -06:00
4cbf1b9a9a [ox] Get building in MSVC 2020-02-12 22:04:35 -06:00
553cde0d0c [ox/fs] Replace uint8_t with char for buffers 2020-02-11 21:42:09 -06:00
ea14ccac3a [ox/std] Leave panic unimplemented when C++ stdlib is absent 2020-02-11 21:10:36 -06:00
e59499b127 [ox/std] Fix oxIgnoreError to not completely ignore the statement it encompases 2020-02-11 00:07:37 -06:00
e927c51b61 [ox/fs] Give FileSystem ability to cleanup FS buffer 2020-02-01 00:11:59 -06:00
dd008c3a08 [ox/std] Remove constexpr from ox::bit_cast 2020-01-31 23:53:55 -06:00
878c944ebf [ox/std] Add bit_cast 2020-01-31 19:43:23 -06:00
d9b363330b [ox/std] Rename bitops.hpp to bit.hpp to mirror the new bit in C++20 2020-01-31 19:06:26 -06:00
c9f91c16c2 [ox/fs] Add exception handling to PassthroughFS for fstream usage 2020-01-25 15:18:08 -06:00
52026ba1a3 [ox/fs] Add oxPanic and remove ErrorInfo 2020-01-25 00:04:47 -06:00
c214f3334a [ox] Remove gdblogger 2020-01-24 23:33:57 -06:00
02c8fb1880 [ox] Remove .gdbinit 2020-01-24 23:27:28 -06:00
8037bc9535 [ox/fs] Remove unnecessary PassthroughFS fstream close 2020-01-24 22:48:05 -06:00
84ee494834 [ox/fs] Make PassthroughFS presence define more export freindly 2020-01-12 20:43:39 -06:00
3afaa0fc85 [ox/fs] Cleanup 2019-12-31 20:08:50 -06:00
4b832dd3d7 [ox/fs] Change PassThroughFS to use fstream instead of C file IO for compatibility reasons 2019-12-22 00:30:08 -06:00
9187bcf62b [ox/std] Fix __has_include logic 2019-12-19 23:43:33 -06:00
8c576ef9c5 [ox] Replace __attribute__((packed)) with OX_PACKED 2019-12-19 23:38:17 -06:00
1d600186cd [ox/fs] Cleanup, Fix FileLocation to make copy of non-const strings 2019-11-26 23:18:38 -06:00
147a37ac6e [ox/std] Cleanup 2019-11-26 23:18:19 -06:00
5dc74e6fd7 [ox/std] Fix constexpr-ness of ox_memset 2019-11-09 01:24:15 -06:00
e470a1da09 [ox/std] Add ox_inhibit_loop_to_libcall for memset and memcpy 2019-11-09 00:06:05 -06:00
ddb158e433 [ox/fs] Fix Directory allocating too much space 2019-11-07 00:34:07 -06:00
d033335350 [ox/ptrarith] Make NodeBuffer clear all memory before using it 2019-11-07 00:33:34 -06:00
3cc6ca215e [ox/fs] Fix Directory to allocate enough space for new entry 2019-11-04 18:30:17 -06:00
deaa293c67 [ox/fs] Fix problems with creating and reading directories 2019-11-03 16:44:57 -06:00
c30ef720c4 [ox/ptrarith] Fix Ptr type's derefernce operator 2019-11-03 16:44:22 -06:00
693e7324ed [ox/mc] Fix buffer overrun issues 2019-11-03 16:42:42 -06:00
7699ae2294 [ox/fs] Remove bad TODO 2019-11-01 18:01:09 -05:00
0825c9869a [ox/mc] Add support for individual element readers for arrays 2019-11-01 01:28:29 -05:00
9da47f75c0 [ox/fs] Add support for direct access to FS memory 2019-11-01 01:28:04 -05:00
3a0b41d2cc [ox/fs] Remove debug line 2019-10-31 00:16:09 -05:00
7f5f74e2a6 [ox/fs] Fix various file system bugs 2019-10-31 00:07:39 -05:00
fc337922ac [ox/std] Add missing null terminator to ox_strncpy 2019-10-31 00:06:11 -05:00
4f81c47734 [ox] Fix GBA compile errors 2019-10-28 00:40:56 -05:00
79a1a6f896 [ox/fs] Add modelWrite to FileAddress and add copy constructor and assignment 2019-10-27 16:22:37 -05:00
656039e011 [ox/std] Replace Error with a multi-field struct 2019-10-27 16:21:41 -05:00
4ca4c31539 [ox/mc] Fix read to resize Vectors before writing to them 2019-10-25 21:48:43 -05:00
fbdb48a1ee [ox/fs] Add modelWrite handler to FileAddress 2019-10-22 18:54:19 -05:00
54ac86fce7 [ox/fs] Add FileAddress support to FileSystem 2019-10-12 11:56:49 -05:00
ce7c416fb7 [ox/fs] Remove Boost FS usage 2019-10-09 18:59:52 -05:00
3c45558dfc [ox/std] Add bitwise not to strong int 2019-08-01 23:20:17 -05:00
6138d0a37e [ox] Fix GCC warnings 2019-07-31 00:06:47 -05:00
c27cc56e31 [ox] Make ValErr::operator T() explicit 2019-07-30 19:00:01 -05:00
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