Commit Graph

  • 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
  • 333417dadd add funciton for data loading/processing Quinn 2025-07-23 16:37:10 +02:00
  • fd8db02e77 modify the array bytelength function to get the bytelength of a single tag. Quinn 2025-07-23 16:31:08 +02:00
  • 2daeb9823c add a function to get an NBT array bytelength Quinn 2025-07-23 14:37:23 +02:00
  • 4e1cd68c38 semantic fix, use explicit fallthrough Quinn 2025-07-23 14:06:45 +02:00
  • 501c623f01 rename nbt_prim_tagsize to nbt_primsize, for consistency. Quinn 2025-07-23 12:29:44 +02:00
  • 65ee7c5b55 add a function for checking whether a tag is primitive or not Quinn 2025-07-23 12:18:55 +02:00
  • 5d7c244c8f optimise switch of nbt_prim_tagsize Quinn 2025-07-23 12:14:03 +02:00
  • 9fd920908e move nbt_prim_tagsize to header, since it's a pretty useful funciton. Quinn 2025-07-23 12:12:36 +02:00
  • 8102dd6a71 fix: markdown footnote now uses correct format Quinn 2025-07-23 13:00:46 +02:00
  • ac3be7e8ab add link time optimalisation flag to makefile Quinn 2025-07-23 11:38:06 +02:00
  • 6c2f51929b write a function for skipping to the next NBT tag Quinn 2025-07-15 13:02:08 +02:00
  • ee1811a3a5 rewrite endian header to not interfere with the endian system header. Quinn 2025-07-15 23:40:43 +02:00
  • db76d6992b add function for comparing an NBT string with a C string Quinn 2025-07-15 13:01:34 +02:00
  • 8345ac1164 remove nbt_procdat struct Quinn 2025-07-15 12:59:30 +02:00
  • 13451da2e8 add basic function signature for processing the NBT data Quinn 2025-07-15 11:17:49 +02:00
  • 6aff9aa528 adapt data spec to use hexadecimal as well Quinn 2025-07-15 11:15:26 +02:00
  • be87ccbe22 explicitly set hexadecimal values in NBT tags Quinn 2025-07-15 10:37:10 +02:00
  • d1d5e14971 add a test which ensures that bit shift right is an arithmetic shift, not logical shift. Quinn 2025-07-13 12:21:37 +02:00
  • bcf7c9be60 improve coordinate conversion documentation, since our division was incorrect. Quinn 2025-07-13 12:05:27 +02:00
  • 8861e591f6 improve mc-data-spec docs code example slightly for cache predictability. Quinn 2025-07-07 15:03:34 +02:00
  • 2cb5d03211 write headers for data processing Quinn 2025-07-07 14:21:33 +02:00
  • 600fa0f25e add map colour definitions. Quinn 2025-07-07 14:19:55 +02:00
  • ceea087a88 remove colour32 typedef, and just use a 4D vector. Quinn 2025-07-07 11:49:39 +02:00
  • 9b9a20e226 we are using GNU extensions, using __builtin_bswap* is fine. Quinn 2025-07-07 11:47:13 +02:00
  • c56e2399e9 add struct for clairity Quinn 2025-07-07 11:18:59 +02:00
  • 66badc2dc6 add a definition to what BE means Quinn 2025-07-07 11:16:04 +02:00
  • 5e0db59198 fix: remove vector unit tests, since this code no longer exists. Quinn 2025-07-03 14:01:24 +02:00
  • 271773a28c replace vectors with SMID vectors. Quinn 2025-07-03 11:44:59 +02:00
  • 9de6e7f92e fix: window resize updates happen each update. Quinn 2025-07-03 11:52:25 +02:00
  • 2d059cf1db apply new formatting rules Quinn 2025-07-03 10:48:15 +02:00
  • da8e8c1450 update clang format to use better formatting rules Quinn 2025-07-03 10:41:50 +02:00
  • f4b1b46b49 strip end of line comments from clang-format file Quinn 2025-07-03 09:58:29 +02:00
  • 3e4d16a5be explicitly undefine NDEBUG in CFLAGS. Quinn 2025-06-23 13:19:06 +02:00
  • f78a5b6557 fix bug on windows tests failing; out was containing rubbish data Quinn 2025-06-20 20:58:31 +02:00
  • d56c69ec4c remove functions marked "inline" in conf.c Quinn 2025-06-20 20:13:36 +02:00
  • 80b8b65b73 define short-hand types for int32/uint32 et cetera Quinn 2025-06-20 19:54:34 +02:00
  • ad66d9465a remove unused header Quinn 2025-06-20 12:35:26 +02:00
  • cf1ed2a721 make colour definition more consise Quinn 2025-06-18 14:15:05 +02:00
  • 16e0c9a95e use vec2 to store window position Quinn 2025-06-18 13:28:03 +02:00
  • 9de057112b add integer vector types Quinn 2025-06-18 13:24:33 +02:00
  • e686baf5c1 clairify usage of long long with a comment Quinn 2025-06-18 13:24:23 +02:00
  • 6a10122858 define some more utility functionality Quinn 2025-06-18 13:24:04 +02:00
  • d28b0189c2 fix: integer types are truncated, rather than clamped. Prefer clamping so values behave as expected for the user. Quinn 2025-06-16 13:40:36 +02:00
  • 48f4b28f90 expand integer config tests Quinn 2025-06-16 12:30:05 +02:00
  • 38aa65942f cleanup shader code Quinn 2025-06-16 13:12:00 +02:00
  • 87af7f293f remove double include Quinn 2025-06-16 11:43:34 +02:00
  • 047b4155c3 make the three triangles of the screen Quinn 2025-06-15 16:08:00 +02:00
  • fe097f9d69 cleanup Quinn 2025-06-15 16:04:18 +02:00
  • f2c2eaf36d replace endianness tests with more robust and architecture-agnostic tests for swapping byte order Quinn 2025-06-15 15:55:15 +02:00
  • 1c8e3252e6 for byte swapping, now use a seperate header in which the compatibility code lives Quinn 2025-06-15 15:54:38 +02:00
  • 6997e08b05 add copyright information and code cleanup Quinn 2025-06-15 14:29:28 +02:00
  • efcc02248f fix: github actions having too much trouble executing wine Quinn 2025-06-15 14:12:49 +02:00
  • ca9413db67 add a recipe to print some session info when calling the makefile Quinn 2025-06-15 11:50:34 +02:00
  • 846cf467a3 utilise the quick compilation using default flags in the workflow Quinn 2025-06-15 11:22:21 +02:00
  • d4f2796859 add definitions to quickly compile using a some default parameters Quinn 2025-06-15 11:17:09 +02:00