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
937e283e0b
fix(build): install headers
2024-07-03 14:38:11 -04:00
cbd169a26a
feat(build): add zig build script
2024-06-28 01:51:21 -04:00
2b620905ca
fix(file): on Windows, GetFileInfo on StreamRecord needs to store the FileInfo in the FileParms
2023-12-10 22:13:44 -05:00
493bf0e389
fix(file): nativepath/nativePath
2023-12-04 17:24:11 -05:00
50881662ae
fix(file): delete bc/file/path/Path.cpp
2023-12-04 17:23:00 -05:00
3cfddf0149
feat(file): allow case-insensitive file paths to be resolved on Linux
2023-12-04 17:16:20 -05:00
58c8a50e8f
fix(bc): OsSetCommandLine initialize counter i to 0
2023-12-02 12:48:25 -05:00
9c714d93df
fix(file): added missing increment inside MakeUnivPath
2023-12-02 12:10:17 -05:00