Commit Graph

89 Commits

Author SHA1 Message Date
8064ec2aff Fix TSS code, fix CV for Win32 platform 2025-09-07 10:32:57 +03:00
ec83067184 Fix Win32 _beginthreadex call 2025-09-07 09:32:07 +03:00
8d18e8020c Convert static func naming to same style
Previously, some modules used BH_<Module> prefix in the names of static
functions (some used just <Module> prefix). Now every static function
should start from lowercase.
2025-09-06 23:40:32 +03:00
4196e8f4c9 Make MT flags configurable in configure script
Remove hardcoded multithreading flags so that we can support exotic
compilers/OSs
2025-09-06 16:19:50 +03:00
7cae704504 Remove compiler warnings from the CMakeLists
The existing compiler warnings expected either clang/GCC or MSVC, thus
making CMakeLists less future proof.
2025-09-06 16:16:57 +03:00
5dc36b222f Refactor configure, add install targets 2025-09-02 10:24:05 +03:00
a4c5ce98ce Minor fixes and refactors 2025-08-28 22:01:36 +03:00
a690b3f285 Automate setting source path 2025-08-28 20:43:20 +03:00
a0c92c2398 Fix TestThread Condition test 2025-08-28 17:53:57 +03:00
12a00c3515 Fix TestThread.c and POSIX semaphore 2025-08-28 17:28:07 +03:00
377247bbe1 Fix configure again 2025-08-28 16:49:59 +03:00
b74e61f00d Fix configure script 2025-08-28 15:56:52 +03:00
c716c71542 Remove extra whitespace and variable in TestBitmap 2025-08-26 10:48:35 +03:00
2843ecd3f7 Fix indentation in Args.c 2025-08-26 10:41:17 +03:00
3bba87d8dc Refactor bitmap, add RGBA5551 format 2025-08-26 10:40:43 +03:00
dd63b19f71 Remove extra whitespace, add size checks 2025-08-24 16:18:26 +03:00
d05efc5f85 Refactor bitmap, add extra accessor for color data 2025-08-07 22:05:12 +03:00
4ce443f0d9 Add input checks, fix overflow/wrap related bugs 2025-08-04 20:35:19 +03:00
deb4ec00f4 Add macro functions for checking unsigned wraps 2025-08-04 20:30:30 +03:00
0da77c00d6 Refactor bitmap, add new formats
Small refactoring of the bitmap module and added more indexed formats.
2025-08-04 12:38:17 +03:00
9c593932a3 Remove extra file 2025-08-03 20:15:06 +03:00
f9feb23d4d Add bitmap support 2025-08-03 19:23:41 +03:00
3cfb61b617 Fix documentation for the BH_Color 2025-08-02 18:03:39 +03:00
c5361ddeaf Fix configure script 2025-08-02 16:39:23 +03:00
d94055b302 Add basic unit test for BH_Color 2025-08-02 14:50:33 +03:00
e5f4de2923 Another CMakeLists.txt fix 2025-07-30 19:08:33 +03:00
6a11305d37 Small refactor in configure script 2025-07-30 18:58:06 +03:00
fd3b3dc468 Change defaults it configure script to match CMakeLists.txt 2025-07-30 18:54:45 +03:00
7bd4f122d7 Add trailing slash if needed in configure script 2025-07-30 18:52:38 +03:00
d0230c3b30 Fix and simplify CMakeLists.txt 2025-07-30 18:39:51 +03:00
da5a4cb483 Simplify configure script 2025-07-30 18:25:33 +03:00
514a17e04d Simplify configure source option 2025-07-29 21:29:22 +03:00
a576a9260d Fix errors in configure script 2025-07-29 21:25:24 +03:00
682abc5664 Add configure script 2025-07-29 21:10:26 +03:00
92fab9dbba Add color manipulation utilities 2025-07-25 10:41:15 +03:00
d527bd4686 Remove extra whitespace before EOL 2025-06-29 22:15:21 +03:00
f82f87cc41 Fix semaphore implementation for MacOS 2025-06-27 12:39:55 +03:00
703fb0f240 Rename MT functions, add tests, fix bugs
Renamed multithreaded related functions, added simple unit tests and fix
bugs caught by said tests :)
2025-06-24 16:48:21 +03:00
9212dbc7c2 Fix memory leak in BH_Bytes 2025-06-22 20:34:14 +03:00
7bfbcd0de5 Use macro for setting vectors 2025-06-22 20:32:46 +03:00
77470adbcd Remove trailing whitespace 2025-06-22 18:48:26 +03:00
6ff6896969 Remove extra newlines 2025-06-21 22:22:04 +03:00
6e643403b4 Fix timedwait operations 2025-06-21 21:39:37 +03:00
56a7cba942 Remove Doxygen 2025-06-21 21:18:56 +03:00
7662c3e32b Add Makefiles to build binaries and docs 2025-06-21 21:17:27 +03:00
fc774fd0ff Refactor, separate docs from headers, add ru docs
Doxygen kind'a sucks and I need multilanguage documentation, so I did
that. Also, separated massive Math.h file into smaller files.
2025-06-21 20:12:15 +03:00
7ee69fc397 Add array sizes to math functions 2025-04-29 18:17:00 +03:00
1b6c858a1b Refactor IO, add buffered IO
I wasn't happy with existing implementation of the IO, so I decided
to change it - as a result there is no longer BH_IOOpen and BH_IOClose
and many IO operations are now optional (behind BH_IOCtl).

Finnally implemented buffered IO and fixed size memory buffer IO.
2025-04-26 10:42:22 +03:00
48ddd91dd4 Fix MacOS and POSIX semaphores related issues
Recently got a MacBook Pro and decided to check how things build on
MacOS. Discovered that POSIX unnamed semaphores weren't implemented, so
I reimplemented them with conditional variable and mutex.

Additionally, fixed scripts and CMake on MacOS
2025-04-25 22:38:33 +03:00
27ad496ca6 Add DS_STORE to gitignore 2025-04-06 14:17:12 +03:00