Commit graph

50 commits

Author SHA1 Message Date
2ed55205d3 fix: improve code consistency and warning settings across multiple files 2025-09-11 07:01:02 +02:00
4c4eb7e620 fix: brain ain't braining at 6am (more win32 get_cwd fixes) 2025-09-11 06:24:45 +02:00
c51434d3ae fix: correct linux directory size calculation by excluding null terminator 2025-09-11 06:20:40 +02:00
35c88d99e3 fix: make win32's drang_fs_get_cwd only fail with ENOMEM when the buffer is not null, and correctly exclude the null terminator when the buffer size is too small 2025-09-11 06:19:50 +02:00
815b03eeb7 feature: enhance current working directory functions for improved error handling and memory management 2025-09-11 06:12:14 +02:00
9a7fca48bb feature: implement UUID generation and conversion functions for Linux and Windows 2025-09-11 05:02:22 +02:00
4917595535 feature: add UUID type and related functions for UUID generation and conversion 2025-09-11 04:41:51 +02:00
27190311c0 Merge pull request 'Merge features/fs' (#6) from features/fs into master
Reviewed-on: PallasDev/DrangPlatform#6
2025-09-09 20:43:29 +02:00
9810cadd37 chore: run clang-format 2025-09-09 20:17:08 +02:00
f766cdb21e feature: implement Win32 directory handling functions including mkdir, rmdir, opendir, readdir, closedir, getcwd, and setcwd 2025-09-09 20:16:27 +02:00
c43748d1d4 feature: add platform-specific path separator functions for Unix and Windows 2025-09-09 20:16:17 +02:00
05f5933111 feature: implement linux directory handling functions 2025-09-09 19:52:16 +02:00
d56466526b feature: remove path manipulation functions from fs.h 2025-09-09 19:51:52 +02:00
2194e4c805 chore: run clang-format 2025-09-09 04:01:11 +02:00
053f4f9043 feature: implement Win32 file handling functions including open, close, read, write, and permissions management 2025-09-09 03:58:22 +02:00
7cd3fe2905 feature: implement linux file handling functions including open, close, read, write, and permissions management 2025-09-09 03:58:17 +02:00
710f231a47 feature: update fs.h to include stddef.h and clarify timestamp type documentation 2025-09-09 03:57:53 +02:00
0db765dc98 feature: add endianness handling and byte swap macros for cross-platform compatibility 2025-09-09 03:57:43 +02:00
f3d307c03e feature: add zero-initialized memory allocation macros and error handling for overflow 2025-09-09 03:57:18 +02:00
4f3ae943db feature: add DRANG_BIT_CAST macro for type-safe bit casting 2025-09-06 01:25:14 +02:00
b8e697cfd0 Merge pull request 'Merge master into features/fs' (#5) from master into features/fs
Reviewed-on: PallasDev/DrangPlatform#5
2025-09-05 22:04:29 +02:00
1c196dd658 style: run flang-format 2025-09-05 22:03:02 +02:00
9bd6be2c2c feature: add linux condition variable, mutex, and read-write lock implementations 2025-09-05 22:00:00 +02:00
3211bb45b3 feature: add error conversion functions for DRANG error codes 2025-09-05 21:40:27 +02:00
eb60ab304a feature: implement condition variable, mutex, and read-write lock alignment functions and generalzize new/free functions 2025-09-05 21:40:10 +02:00
75fbe33201 feature: add alignment functions for mutex, condition variable, and read-write lock 2025-09-05 21:39:21 +02:00
18c7623a68 feature: add file system API with open, read, write, and directory operations 2025-09-05 19:46:17 +02:00
d5c7ea29f9 fix: update mimalloc repository and enforce C mode 2025-09-05 17:58:27 +02:00
b30b7f641f fix: change target_compile_definitions from PRIVATE to PUBLIC for shared and static libraries 2025-09-05 17:06:49 +02:00
c6925914e3 style: run clang-format 2025-09-05 17:03:59 +02:00
e857d1a896 feature: introduce DRANG_PLATFORM_BUILD_SHARED option for shared library builds 2025-09-05 17:03:27 +02:00
505539f1cd feature: add string duplication functions with error handling 2025-09-05 16:52:35 +02:00
f7c5fb8ed8 feature: separate dll export/import macros from api macro, and rename DRANG_API to DRANG_PLATFORM_API 2025-09-05 16:36:30 +02:00
9538637d58 chore: specify C language for DrangPlatform project in CMakeLists.txt 2025-09-05 16:22:07 +02:00
121c54227a style: apply consistent formatting and remove unnecessary blank lines 2025-09-05 16:05:19 +02:00
20e51fd6af cleanup: remove unnecessary blank lines in CMakeLists.txt 2025-09-05 16:01:58 +02:00
a9d9825d0f feature: add clang-format check workflow for code style enforcement 2025-09-05 16:01:00 +02:00
4e9155a02c feature: add const qualifiers to allocation functions for improved safety 2025-09-05 15:59:31 +02:00
606fd13447 feature: implement win32 read-write lock synchronization primitive 2025-09-05 15:48:13 +02:00
9ad553ea6e feature: implement win32 drang_cond_wait function for condition variable synchronization 2025-09-05 15:48:06 +02:00
5de4836e20 feature: add read and write unlock functions for read-write locks 2025-09-05 15:43:05 +02:00
6e44b46020 feature: implement win32 condition variable synchronization primitive 2025-09-05 15:24:39 +02:00
2cdc7ee455 feature: add internal header for mutex and condition variable structures 2025-09-05 15:24:04 +02:00
cd36e689a6 feature: implement win32 mutex synchronization primitive 2025-09-05 15:16:32 +02:00
37c59b003c feature: add synchronization primitives api including mutexes, condition variables, and read-write locks 2025-09-05 15:16:06 +02:00
80462a42f1 style: increase column limit to 120 in .clang-format 2025-09-05 15:15:38 +02:00
d787477657 feature: add more error codes, and document error handling macros 2025-09-05 15:15:25 +02:00
13cc25860e feature: implement memory allocation functions 2025-09-05 04:06:15 +02:00
29e8753d1f feature: add error handling functions and definitions 2025-09-05 04:06:07 +02:00
d1a39262d8 Initial commit 2025-09-05 04:05:47 +02:00