5f909d1d65
rework the flow of the Makefile.
2025-10-23 15:28:42 +02:00
87541d5789
modify Makefile to be more in-line with the GNU standard.
...
Mainly so the makefile is a bit less esoteric to use, debugging flags
must be specified manually.
changed:
- `$RM` for calling `rm`
- removed unused `$ISWIN`
- renamed `test` to `check`
- added `install` and `install-strip` recipes, which for now remain
empty
- added `-g` to `$CFLAGS`, since it helps debugging, and in case of
failures makes bug report less of a headache.
I decided to not modify it further so "specialised tools" don't need to
store files in the git repo, which seemed to complicate logic.
This is the same reason to why I chose to not adapt clean in a way to
introduce `mostlyclean`.
2025-10-20 15:19:24 +02:00
316726a610
tmp: revert enabling a column limit
2025-10-16 23:35:30 +02:00
1aa34f7d3f
enable a column limit.
2025-10-09 21:12:53 +02:00
00719b1933
refactor code with new formatting rules
...
Functions now break before their brace, mirroring the Linux kernel.
The reason for this is that breaking the parameter list otherwise makes
code unreadable.
2025-10-09 19:02:16 +02:00
eb45650178
fix: use uintptr over usize in locations where applicable
2025-10-09 18:35:39 +02:00
8ca49aa4fa
fix: ssize got removed in rework of intdef.h/types.h.
2025-10-09 12:28:24 +02:00
d4fabf437c
reformat the code by enabeling assignment- and declaration alignment.
2025-10-09 12:17:04 +02:00
cebe0df8a2
move /src/error.? to /src/util/error.?
2025-10-09 12:16:38 +02:00
aa58d931aa
move /src/util/intdef.h to /src/util/types.h
2025-10-09 12:16:06 +02:00
27c862c215
rework intdef.h to not rely upon standard library headers by using predefined macros.
2025-10-09 12:05:05 +02:00
6eb7d126da
create a custom definition for size_t and ssize_t, which is ssize and usize, for conveinience.
2025-09-18 10:39:57 +02:00
1e24a4ee92
add a CI status badge to the README.md
2025-09-18 09:58:05 +02:00
181fca6828
fix: windows test; USERPROFILE should also result in a roaming path.
2025-09-18 09:50:56 +02:00
f6e5712876
fix: testing warnings
2025-09-18 09:47:31 +02:00
47d34b3f7d
rewrite testing code to be a bit more durable and clean.
2025-09-17 16:52:18 +02:00
e623a352d2
fix: windows cache is not caching correctly.
2025-09-17 13:59:03 +02:00
079361771f
fix-test: windows compilation; append some extra libraries when compiling windows.
2025-09-17 13:44:34 +02:00
66e3d0d06f
revert previous, since the compilation has concluded
2025-09-17 12:55:33 +02:00
adfca88d3c
push compilation of libraries on everything to get rid of turtle compilation speeds
2025-09-17 12:51:20 +02:00
e9c922d3cd
revert forced usage of bash, instead opt for (more) explicit compiler selection.
2025-09-17 12:39:21 +02:00
d46f8c0900
always use bash as the shell.
2025-09-17 12:13:46 +02:00
2261209d8d
win: increase cores, to hopefully not spend 20min on compilation.
2025-09-17 12:13:34 +02:00
a16f454396
drop macosx support; the fix introduced a new bug
...
We're now running into dynamic linker problems, so we shall disable
macosx support for now.
2025-09-17 11:32:40 +02:00
945a82e5f6
test-fix: windows compilation
2025-09-17 11:32:40 +02:00
88d39150dd
test-fix: macosx compilation
2025-09-17 11:32:40 +02:00
76c992efdc
note about the memory leak I could not locate within my code.
...
hint: I couldn't locate it, because it isn't in my code.
2025-09-15 15:14:08 +02:00
28b98705f5
refactor the lot a bit, for clairity.
2025-09-15 15:08:15 +02:00
057b234251
fix: don't free window twice
2025-09-15 15:07:41 +02:00
dd2f4c403c
add copyright information to error.c
2025-09-15 14:23:03 +02:00
dc3abf992b
handle window exits more gracefully and appropriately.
2025-09-15 14:23:03 +02:00
1e10fec9c6
rename input callback to something more appropriate.
2025-09-15 14:12:18 +02:00
41d944ac21
remove old/stale code from main.c
2025-09-15 14:00:40 +02:00
faa93f4372
remove needless inline function from main.c
...
this is shorter, does the same, and this was an incorrect application of
`inline`.
2025-09-15 13:58:47 +02:00
e3c0afbb2f
fix: glfw error logging inconsistent with how the rest of our application logs errors.
2025-09-15 13:55:32 +02:00
11c8748262
define GLFW_INCLUDE_NONE, so glfw knows we're using custom headers.
2025-09-15 13:51:36 +02:00
25fa078c98
add a check for debug logging, to only log when the environment variable DEBUG is set to 1
2025-09-15 13:51:36 +02:00
023123e54f
make debug loggers not be needlessly abbreviated.
2025-09-15 13:06:20 +02:00
b13739c782
do not bother with recompiling the libraries, if we got a cache hit.
2025-09-15 12:57:35 +02:00
5db42a2b15
disable windows from the CI.
...
yeah, fuck you too.
Windows has been... quite the pain to deal with, and I've reached the
limit of what I can be arsed to do to try and make it work.
2025-09-15 12:43:52 +02:00
2277b8ec77
use a more accurate hash for caching submodule objects.
2025-09-15 12:41:52 +02:00
fa26a3561d
disable macosx for the time being, it is non-functional and I can't/won't test it anyway.
2025-09-15 12:34:30 +02:00
15b5430611
Instead of using cmake, I *obviously* need to use cmake -G 'Unix Makefiles'. How silly of me.
...
MicroSoft Windows: "it just works"
2025-09-15 12:30:01 +02:00
6c184a4d36
re-enable windows, and see what happens.
2025-09-15 12:17:37 +02:00
82ebe1f4d1
fix: use CC instead of LD, and deprecate LD
...
this is a bit confusing, since setting `LD=cc` would have the same
issue; `ld: -f may not be used without -shared`. So I've got no idea
what is going wrong, I guess it's something funky.
This works, so we shall stick with this.
2025-09-15 12:08:39 +02:00
5f3bd40a47
potato time.
...
this is quite upsetting.
2025-09-15 12:04:41 +02:00
158a7f8383
fix: don't use UNIX sh based ifs, instead opt for GNU Make.
...
This is more portable acorss machines
2025-09-15 12:04:41 +02:00
c32d1551c8
fix: regular xxd does not have -n, thus using some argument manipulation magic
...
On my main system I use `tinyxxd`, henceforth: "regular"
2025-09-15 12:04:41 +02:00
b04ce9998f
fix: shader hex code is formatted incorrectly
2025-09-15 11:59:39 +02:00
218b98e684
fix: colour coding on error messages is incorrect
2025-09-15 11:59:39 +02:00