Commit graph

116 commits

Author SHA1 Message Date
e813ad0672 fix(file): fixed bug in recursive CreateDirectory on posix where it skips over the root 2025-03-30 22:32:09 -04:00
ba15fd914f fix(unicode): numeric_limits does not provide maximum pointer value, use UINTPTR_MAX instead 2025-03-30 18:54:17 -04:00
9b4a1ce0ae fix(bc): remove printdebug statements 2025-03-30 13:04:15 -04:00
e3e99fa0af fix(file): call ->getpos, not ->setpos 2025-03-30 13:03:52 -04:00
b74865fa61 fix(file): fix mismatched allocation in MakeAbsolutePath 2025-03-30 00:05:50 -04:00
d15affe417 fix(file): fix duplication typo in Copy 2025-03-30 00:03:39 -04:00
24bbe15796 refactor(debug): change build macro to WHOA_BUILD_ASSERTIONS 2025-03-27 18:59:50 -04:00
3a9129f69c refactor(debug): rename BLIZZARD_ASSERT to BC_ASSERT 2025-03-27 17:54:20 -04:00
616ac87ad4 chore(build): upgrade system dependency 2025-03-27 17:38:59 -04:00
46e0a5a0c6 feat(memory): add helper macros to simplify allocating/deallocating objects
SMemAlloc and SMemFree can now be used indirectly by using the 'new' and 'delete' operators.
This also means that any project linked against bc will import these operators.

The following helper macros are now available for use by including 'bc/Memory.hpp'

  ALLOC(n)      allocate n random bytes of memory
  ALLOC_ZERO(n) allocate n zeroed bytes of memory
  FREE(ptr)     deallocate memory at ptr
  NEW(T)        allocate an object of type T and call the object's constructor
  NEW_ZERO(T)   allocate an object of type T with zeroed bytes and call the object's constructor
  DEL(ptr)      call the object at ptr's destructor, and deallocate its memory
2025-03-27 15:24:19 -04:00
05db2d1723 refactor(unicode): use max address value instead of maximum uint32 value as sentinel value in ConvertUTF16to8 2025-03-24 14:27:19 -04:00
4bea27d25e fix(file): SMem* should be used to allocate StreamRecords with all bytes zeroed 2025-03-18 13:44:06 -04:00
87a8d3f643 fix(file): added missing file functions on Windows 2025-03-16 02:43:23 -04:00
481a1f3e15 fix(file): remove System_File.hpp from Windows filestack 2025-03-16 02:35:11 -04:00
2e090457f5 fix(file): added missing Read and ReadP calls on Windows 2025-03-16 02:23:00 -04:00
d78609cceb fix(file): added missing Read and ReadP calls on Windows 2025-03-16 02:18:03 -04:00
48d1a3c0b0 fix(file): aggressively turn off macros that mess with Win32 filestack 2025-03-16 01:57:25 -04:00
12b4a4f7b4 fix(file): aggressively turn off macros that mess with Win32 filestack 2025-03-16 01:54:01 -04:00
abd4efb5b5 fix(file): aggressively turn off macros that mess with Win32 filestack 2025-03-16 01:46:38 -04:00
744a1bddec fix(file): aggressively turn off macros that mess with Win32 filestack 2025-03-16 01:40:17 -04:00
05bd4e017e style(os): format file/Types.hpp 2025-03-16 00:37:49 -04:00
2cf55cf23b fix(os): yes, file flags are actually used in some places 2025-03-16 00:36:40 -04:00
83e0a8235b fix(file): flush.cpp include type 2025-03-15 23:56:50 -04:00
e9b7e58bc8 fix(string): add Equal functions 2025-03-15 23:55:58 -04:00
e68a482072 fix(file): add Blizzard::File::Flush 2025-03-15 23:55:16 -04:00
c305acb5f9 fix(posix): mtime, not mtime.tv_sec 2025-03-15 23:37:04 -04:00
cb4c0ca497 fix(posix): use mtime instead of mtim 2025-03-15 23:32:50 -04:00
5808ac3ad4 fix(posix): statfs() call requires different headers on Darwin or Linux 2025-03-15 23:17:52 -04:00
a3836e5031 fix(os): add missing include <cstdlib> 2025-03-15 23:14:28 -04:00
5606dc65b0 fix(os): correct bad buffer identifier in OsGetExeName 2025-03-15 23:11:09 -04:00
35eae6b709 fix(string): make Equal* actually work 2025-03-15 23:07:51 -04:00
81cc3145b3 style(posix): tidy up member name for Shutdown 2025-03-15 22:55:14 -04:00
3e7a111809 fix(win): added missing Shutdown stub to Win32 filestack 2025-03-15 22:54:15 -04:00
0bed8080d5 fix(os): added missing increment to OsSetCommandLine 2025-03-15 22:53:38 -04:00
26f3d5527e feat(test): add test cases for reading from /dev/zero on UNIX 2025-03-15 22:26:39 -04:00
ee4c39082e feat(test): add test cases for new Unicode functions 2025-03-15 22:26:12 -04:00
99f6576a12 refactor(bc): improve consistency (across platforms esp.) and readability of string conversion 2025-03-15 22:25:07 -04:00
5d96890167 refactor(file): overhaul filesystem for better accuracy, add some new features too 2025-03-15 22:23:38 -04:00
e674242b47 chore(build): upgrade system dependency 2024-09-08 11:04:29 -04:00
c5880338b4 chore(build): remove mem dependency 2024-09-04 09:11:12 -04:00
3ded785b5f fix(build): compile storm/Memory.cpp 2024-09-04 08:09:20 -04:00
b442784884 fix(build): don't link to mem 2024-09-04 08:07:59 -04:00
e3a778e1fb fix(memory): missing cstdlib include 2024-09-04 08:06:25 -04:00
192800aa51 chore(build): remove mem dependency from libs 2024-09-04 08:04:12 -04:00
f42a37ddd7 chore(build): remove mem dependency 2024-09-04 08:03:03 -04:00
3acd26453d chore(build): update dependencies 2024-07-22 03:46:45 -04:00
5a64829d1f fix(build): include missing source files 2024-07-05 01:25:05 -04:00
7f40410814 fix(build): include missing source files 2024-07-05 01:11:56 -04:00
c1e81d4bff fix(build): link mem properly 2024-07-03 14:54:24 -04:00
462eadcec5 fix(build): link headers properly 2024-07-03 14:51:11 -04:00