Commit Graph

  • f1141e0db4 fix: not moving chunks correctly in mcx_delchunk_range Quinn 2025-08-28 10:58:26 +02:00
  • 15942b47f5 fix: assertion was inverted Quinn 2025-08-28 10:57:00 +02:00
  • bc8803525d update comments and a parameter name in mcx.h Quinn 2025-08-27 14:57:34 +02:00
  • 7531d786be add a function for range deleting chunks Quinn 2025-08-27 14:37:41 +02:00
  • 2c5b9def28 should set the spare chunk to 0x400, not 0 Quinn 2025-08-27 14:37:33 +02:00
  • cd277873b5 split apart the moving of the data, for further flexibility Quinn 2025-08-27 14:35:12 +02:00
  • f203cabad9 fix: endianess was (often) converted after performing computations or missing completely. Quinn 2025-08-27 14:37:17 +02:00
  • 28dd8af353 add comments Quinn 2025-08-27 12:52:16 +02:00
  • 9c690eb327 add NONNULL attributes to chunk deletion functions Quinn 2025-08-27 12:31:47 +02:00
  • af8211c5ce write function for bulk removal of chunks Quinn 2025-08-27 11:14:52 +02:00
  • 767f3a5c13 refactor of mcx_delchunk to make things a bit more clear and flexible Quinn 2025-08-27 12:03:00 +02:00
  • 43e3e4fe85 fix: not converting big-endian numbers to host. Quinn 2025-08-27 11:53:53 +02:00
  • fad6f366b4 fix: mcx_delchunk was not updating the byte offset of affected chunks. Quinn 2025-08-27 11:41:31 +02:00
  • b7859d56d9 add function for computing the bytesize of the *.mcX file Quinn 2025-08-27 10:08:18 +02:00
  • 7a45724de7 modify planned features in README.md, to add a few of my ideas. Quinn 2025-08-27 09:54:55 +02:00
  • 1c863099a9 write a function for deleting a specific chunk. Quinn 2025-08-26 12:12:26 +02:00
  • 2f68574aea swap order of nbt_proctag and nbt_nexttag Quinn 2025-08-26 11:24:36 +02:00
  • 4e230ae856 add a utility macro for getting the bitwise ceiling. (e.i. the next power of 2) Quinn 2025-08-26 11:18:23 +02:00
  • e02f4091b8 start writing code for *.mcX file parsing, starting with indexing logic. Quinn 2025-08-25 14:29:45 +02:00
  • 1f46640e49 clarify which bytes we're referring to Quinn 2025-08-25 13:44:01 +02:00
  • 17357d4672 remove unused/unmaintained code. Quinn 2025-08-25 12:42:45 +02:00
  • 5644d377de make helper functions for nbt_proctag have similar IO as itself. Quinn 2025-08-25 12:40:17 +02:00
  • 44d2271972 fix: return values and list processing was too funky with nbt_proctag. Quinn 2025-08-25 10:57:15 +02:00
  • 545eecca37 remove CI, because I cannot be bothered. Quinn 2025-08-25 09:32:31 +02:00
  • 6dae1d1600 use a flexible array member for including length with array data Quinn 2025-08-24 13:21:05 +02:00
  • a6442a851e write a function for processing NBT_LIST Quinn 2025-08-24 13:06:04 +02:00
  • ec04177f45 remove exessive comments Quinn 2025-08-24 12:52:43 +02:00
  • 40b8c0ef30 write documentation for nbt_procarr. Quinn 2025-08-24 12:51:59 +02:00
  • 7feb193c51 make procarr code more consise. Quinn 2025-08-24 12:48:21 +02:00
  • 29c8a2b6ea improve documentation for the nbt_proctag function Quinn 2025-08-23 23:19:16 +02:00
  • 8cd29225d1 remove outdated TODO comments Quinn 2025-08-23 23:12:55 +02:00
  • 20ec45f230 fix: not actually returning NULL. Quinn 2025-08-23 23:11:52 +02:00
  • 3cdee8b40c add nbt_proctag to nbt.h Quinn 2025-08-23 23:10:26 +02:00
  • 89ceb5263c put attributes after function declarations Quinn 2025-08-23 23:08:51 +02:00
  • 4fa0a84c94 fix attributes with parameters to be less messy due to vardiac arguments Quinn 2025-08-23 23:01:01 +02:00
  • 8452f7d21e updated contents link in styleref Quinn 2025-08-23 22:36:21 +02:00
  • 6c0a1de365 fix: x86_64 wikipedia link is always the English variant. Quinn 2025-08-23 22:32:07 +02:00
  • d9ee6c9155 replace "UNIX-based systems" with "Linux systems" Quinn 2025-08-23 22:31:06 +02:00
  • 5ba44689ff remove unused file Quinn 2025-08-23 22:26:26 +02:00
  • fb21e7e782 add more planned features to the list Quinn 2025-08-23 22:23:18 +02:00
  • f1ea7dcef8 continue working on nbt_proctag focussing on array processing. Quinn 2025-08-22 13:02:12 +02:00
  • 9996e84ef5 move contents of do while loop in nbt_nexttag into its own funciton Quinn 2025-08-22 09:58:45 +02:00
  • 949cac5bfe move NBT_LIST case into its own function Quinn 2025-08-22 09:52:55 +02:00
  • 3eb92541db simplify the ptr increment a bit, so it's more clear what's going on Quinn 2025-08-20 19:00:57 +02:00
  • df3720b966 refactor via swapping values to instead have n * len, to be len * n Quinn 2025-08-20 18:41:47 +02:00
  • f53e4315ee fix: dpt increment is unecessary. Quinn 2025-08-20 18:35:31 +02:00
  • 24f9ba047e fix: not handling END tags in a list Quinn 2025-08-20 18:29:46 +02:00
  • e67d8c7fd4 fix: lens[dpt] is not a type, should be tags[dpt] Quinn 2025-08-20 16:45:53 +02:00
  • 23b64199d7 implement handling compound lists Quinn 2025-08-20 16:40:24 +02:00
  • 6a9d6f75a4 fix: fatal macro not printing to stderr Quinn 2025-08-20 11:46:31 +02:00
  • e018e1ff1b reorder variables in nbt_nexttag Quinn 2025-08-20 10:46:37 +02:00
  • 1b09d3d7f1 remove need for mems, since the compiler will likely optimise it away regardless Quinn 2025-08-20 10:44:46 +02:00
  • e4b90246c5 remove unused nbt_primsize function Quinn 2025-08-19 11:14:38 +02:00
  • c15046e017 small fix with nbt_proctag, and remove usage of nbt_primsize Quinn 2025-08-19 11:14:14 +02:00
  • e3a8063124 calling nbt_primsize actually takes up more lines than if I didn't. Quinn 2025-08-19 11:07:13 +02:00
  • 10a2aca0a5 fix: remove recursive functions and improve (theoretical) performance Quinn 2025-08-18 14:28:34 +02:00
  • e6cc6ce2e8 fix: swapped calloc arguments Quinn 2025-08-18 13:51:49 +02:00
  • 999180cd74 drop windows support Quinn 2025-08-18 13:47:54 +02:00
  • 08a8e261f0 remove usage of cross compilation because it's borked. (thanks microsoft!!) Quinn 2025-08-13 15:42:14 +02:00
  • c716a9accd update gitignore to be more accurate with the current workings of things Quinn 2025-08-13 11:42:57 +02:00
  • c1471e92bd remove release.yaml, since it's out of date and will be replaced when/if I get to it. Quinn 2025-08-11 14:21:50 +02:00
  • c2c4afb49f complete overhaul of makefile Quinn 2025-08-11 12:10:12 +02:00
  • 916e81aaad update glad library Quinn 2025-08-11 12:27:17 +02:00
  • ee27935aab add vcpkg.json, and modify ci.yaml to improve usage vcpkg Quinn 2025-08-13 12:07:36 +02:00
  • 51a05f2d7c seperate json from the yaml column, to use tabs instead of spaces Quinn 2025-08-13 11:34:06 +02:00
  • ebd5b6b430 rewrite the style guide Quinn 2025-08-12 12:38:34 +02:00
  • 2e7932a70c add a section about general code information Quinn 2025-08-12 12:05:56 +02:00
  • 37181a299c write a note Quinn 2025-08-13 11:06:51 +02:00
  • 41828c6ea7 modify line about british spelling Quinn 2025-08-12 11:47:55 +02:00
  • f0e6aa38c7 seperate out general good C practice from the style guide Quinn 2025-08-12 11:46:26 +02:00
  • 54428e72f9 fix: tests were still using types.h, rather than intdef.h Quinn 2025-08-12 11:02:15 +02:00
  • 75008c6ca8 add comment to explain sar test Quinn 2025-08-12 11:01:32 +02:00
  • 7ef32c06ea add libarchive to the dependencies. Quinn 2025-08-10 23:05:22 +02:00
  • 5c57a77ad4 remove types.h, and start using intdef.h Quinn 2025-08-08 12:37:31 +02:00
  • bdf4d7b22b remove atrb_* macros for the attributes, and replace with single-word, all uppercase versions. Quinn 2025-08-08 12:30:59 +02:00
  • 114a7d4ea5 implement nbt_nextcompound Quinn 2025-08-08 12:27:46 +02:00
  • e287f6034f add copyright information to nbt.c Quinn 2025-08-07 13:49:50 +02:00
  • 0e00cb2d54 remove non-functional code Quinn 2025-08-07 12:56:21 +02:00
  • c3fc688c35 remove nbt_proc and replace it with nbt_initproc Quinn 2025-08-07 13:12:52 +02:00
  • 4871a19695 update README to include (some) planned features Quinn 2025-08-07 12:50:22 +02:00
  • 2d33255ce8 remove release CI status indicator, since it won't hold any value Quinn 2025-08-07 12:34:41 +02:00
  • 066e1c0049 remove nbt_isprim function, because it never really served any purpose.' Quinn 2025-08-07 12:08:48 +02:00
  • 1052dcaac9 add functions for incrementing to the next tag Quinn 2025-08-07 12:06:53 +02:00
  • f952268152 fix: the + unary operator does not add 1, but just specifies intent. Quinn 2025-08-07 09:57:17 +02:00
  • 4b2404e903 move utility functions upwards to keep the logical order Quinn 2025-08-07 09:40:46 +02:00
  • ff7598a7e3 rework attributes to be a bit safer and more logical. Quinn 2025-07-31 11:26:02 +02:00
  • e472d9c251 rename types.h to intdef.h and replace types.h with a symlink. Quinn 2025-07-31 10:52:37 +02:00
  • d70888f9fb remove __attribute__((fallthrough)) from all that do not require it. Replace with // fall through in some places for readability Quinn 2025-07-24 16:32:41 +02:00
  • 6dbf034ba1 add marker so I remember to add this back in Quinn 2025-07-24 16:15:36 +02:00
  • 1ea37b6e86 fix: there is no need to let the compilation continue if it fails. Quinn 2025-07-24 16:06:56 +02:00
  • f3273ed5d0 fix: include my endian.h in nbt.h Quinn 2025-07-24 16:04:14 +02:00
  • 6ccb55de8b remove unused function nbt_cmpstr, since we're performing this check directly now. Quinn 2025-07-24 15:53:04 +02:00
  • 69dc174ff2 remove nbt_arrlen function Quinn 2025-07-24 14:53:57 +02:00
  • 58d0dd01e2 move nbt_strlen to nbt.h, and rename to nbt_namelen Quinn 2025-07-24 14:53:11 +02:00
  • 4005163d61 fix: use atrb_pure for functions reading global state Quinn 2025-07-24 14:53:38 +02:00
  • 8964a1a563 fix: atrb for when _MSC_VER is defined did not have parameters Quinn 2025-07-24 14:23:19 +02:00
  • f0c5408c51 fix: error.h should exit with EXIT_FAILURE, rather than 1 Quinn 2025-07-24 14:22:50 +02:00
  • 1d5df8df0a apply new formatting rules to the whole project Quinn 2025-07-24 11:40:12 +02:00
  • cdf13b7529 change qualifier alignment to be left again Quinn 2025-07-24 11:37:53 +02:00
  • 13e1ceddfc update nbt_proc function, still inoperable Quinn 2025-07-23 16:40:13 +02:00