3cdee8b40c
add nbt_proctag to nbt.h
...
also changed the `out` parameter from `u8` to `void`, to be more
acurrate that it may point to whatever.
2025-08-23 23:13:27 +02:00
89ceb5263c
put attributes after function declarations
...
super confusing, but the formatter is being annoying otherwise
2025-08-23 23:09:09 +02:00
4fa0a84c94
fix attributes with parameters to be less messy due to vardiac arguments
2025-08-23 23:01:01 +02:00
8452f7d21e
updated contents link in styleref
2025-08-23 22:36:21 +02:00
6c0a1de365
fix: x86_64 wikipedia link is always the English variant.
...
The link was pointing to `en.wikipedia.org`, where it is better to not
assume the (preferred) language, and just link to `wikipedia.org`.
2025-08-23 22:34:20 +02:00
d9ee6c9155
replace "UNIX-based systems" with "Linux systems"
...
UNIX-based would include MacOSX, OpenBSD, et cetera.
This chould prove problematic in the future due to lack of testing.
Henceforth, "Linux systems" is more accurate.
2025-08-23 22:31:06 +02:00
5ba44689ff
remove unused file
2025-08-23 22:26:26 +02:00
fb21e7e782
add more planned features to the list
...
and sort list based upon importance
2025-08-23 22:24:03 +02:00
f1ea7dcef8
continue working on nbt_proctag focussing on array processing.
2025-08-22 13:02:12 +02:00
9996e84ef5
move contents of do while loop in nbt_nexttag into its own funciton
2025-08-22 10:14:57 +02:00
949cac5bfe
move NBT_LIST case into its own function
2025-08-22 10:14:53 +02:00
3eb92541db
simplify the ptr increment a bit, so it's more clear what's going on
2025-08-20 19:00:57 +02:00
df3720b966
refactor via swapping values to instead have n * len, to be len * n
...
it is like this in other code, and makes it more obvious what the actual
unique value is.
At least to me, which is what mostly matters.
2025-08-20 19:00:37 +02:00
f53e4315ee
fix: dpt increment is unecessary.
2025-08-20 18:35:31 +02:00
24f9ba047e
fix: not handling END tags in a list
2025-08-20 18:29:46 +02:00
e67d8c7fd4
fix: lens[dpt] is not a type, should be tags[dpt]
2025-08-20 16:45:53 +02:00
23b64199d7
implement handling compound lists
2025-08-20 16:43:01 +02:00
6a9d6f75a4
fix: fatal macro not printing to stderr
2025-08-20 11:46:31 +02:00
e018e1ff1b
reorder variables in nbt_nexttag
2025-08-20 10:46:37 +02:00
1b09d3d7f1
remove need for mems, since the compiler will likely optimise it away regardless
2025-08-20 10:44:46 +02:00
e4b90246c5
remove unused nbt_primsize function
2025-08-19 11:15:41 +02:00
c15046e017
small fix with nbt_proctag, and remove usage of nbt_primsize
2025-08-19 11:14:14 +02:00
e3a8063124
calling nbt_primsize actually takes up more lines than if I didn't.
2025-08-19 11:07:13 +02:00
10a2aca0a5
fix: remove recursive functions and improve (theoretical) performance
...
note that lists are no longer handled here, this will be re-implemented
in a newer commit. The basic functionality for compound/end and other
tags are there, though.
2025-08-18 14:35:05 +02:00
e6cc6ce2e8
fix: swapped calloc arguments
2025-08-18 13:51:49 +02:00
999180cd74
drop windows support
...
I am done, I could not take it anymore.
Windows cross-compilation was driving me mad, I'll figure something else
out... probably. I just can't deal with this anymore right now.
It will be added back but I am so fucking tired of messing about with
vcpkg and all that crap.
2025-08-18 13:47:54 +02:00
08a8e261f0
remove usage of cross compilation because it's borked. (thanks microsoft!!)
2025-08-13 16:18:50 +02:00
c716a9accd
update gitignore to be more accurate with the current workings of things
2025-08-13 16:18:50 +02:00
c1471e92bd
remove release.yaml, since it's out of date and will be replaced when/if I get to it.
2025-08-13 16:18:50 +02:00
c2c4afb49f
complete overhaul of makefile
...
- removed logic for creating `compile_commands.json` (programmer must
figure out)
- set to specific shell
- enable globstar to replace `find`
- replace `:=` with `=` where appropriate.
- remove reliance on `vcpkg`
2025-08-13 16:18:50 +02:00
916e81aaad
update glad library
2025-08-13 16:01:51 +02:00
ee27935aab
add vcpkg.json, and modify ci.yaml to improve usage vcpkg
...
Now we utilise storing dependencies in `vcpkg.json`, we can use this to
more easily install the dependencies.
Furthermore, we moved cloning vcpkg to `checkout`, which creates clones
with `--depth=1` by default.
2025-08-13 16:00:51 +02:00
51a05f2d7c
seperate json from the yaml column, to use tabs instead of spaces
2025-08-13 12:23:54 +02:00
ebd5b6b430
rewrite the style guide
2025-08-13 12:21:07 +02:00
2e7932a70c
add a section about general code information
2025-08-13 12:21:07 +02:00
37181a299c
write a note
2025-08-13 12:21:07 +02:00
41828c6ea7
modify line about british spelling
2025-08-13 12:19:19 +02:00
f0e6aa38c7
seperate out general good C practice from the style guide
2025-08-13 12:19:17 +02:00
54428e72f9
fix: tests were still using types.h, rather than intdef.h
2025-08-13 12:19:17 +02:00
75008c6ca8
add comment to explain sar test
2025-08-13 12:19:15 +02:00
7ef32c06ea
add libarchive to the dependencies.
...
library for handling archives, like gzip, xz, zstd, et cetera.
This'll be crucial later on.
2025-08-10 23:24:55 +02:00
5c57a77ad4
remove types.h, and start using intdef.h
2025-08-08 12:37:31 +02:00
bdf4d7b22b
remove atrb_* macros for the attributes, and replace with single-word, all uppercase versions.
...
improves briefity, and reduces confusion.
2025-08-08 12:30:59 +02:00
114a7d4ea5
implement nbt_nextcompound
...
this is still flawed, due to recursion and there being a better way.
Just gotta find it.
2025-08-08 12:27:46 +02:00
e287f6034f
add copyright information to nbt.c
2025-08-07 13:49:50 +02:00
0e00cb2d54
remove non-functional code
2025-08-07 13:23:47 +02:00
c3fc688c35
remove nbt_proc and replace it with nbt_initproc
...
we're moving towards that the user will handle most of the looping and
data feed.
So the use of these functions is no longer intended, becides, they
weren't being maintained whilst the parameters changed, causing the
portion of code to lag behind.
I'd rather rewrite code than have to prune old, unused code.
2025-08-07 13:23:33 +02:00
4871a19695
update README to include (some) planned features
2025-08-07 13:02:08 +02:00
2d33255ce8
remove release CI status indicator, since it won't hold any value
2025-08-07 13:02:08 +02:00
066e1c0049
remove nbt_isprim function, because it never really served any purpose.'
2025-08-07 13:02:08 +02:00