Commit Graph

267 Commits (8da758becd7e6e859f283f02f9b2b5d5d092666b)

Author SHA1 Message Date
BodgeMaster a2084e296a lib/error: Remove ErrorOr<T>(bool) constructor
This allows ErrorOr<T> to be used for bool, as there would be conflicting
constructors otherwise.

Also, we have ErrorCodes::UNKNOWN now so, instead of `ErrorOr<T>(true)`,
`ErrorOr<T>(true, ErrorCodes::UNKNOWN)` can be used.
2022-07-14 03:58:13 +02:00
BodgeMaster e6f4884b60 lib/error: finally removed that useless cpp file 2022-07-14 03:16:58 +02:00
BodgeMaster 91f3dfaa5e lib/cli: Add a library for command line arguments parsing
This has the parser itself already implemented, all other functionality is still
missing. So are tests.

Yes, I’m making my own getopt. Let me.
2022-07-14 03:13:48 +02:00
BodgeMaster 7e049fcfd1 lib/error: rename and add error constants 2022-07-13 22:01:18 +02:00
BodgeMaster c406555e4e tools/hexnet: argument parser fix 2022-07-13 20:35:33 +02:00
BodgeMaster 5cb1a52ec4 tools/hexnet: replace "server" with "listen" because that's what netcat calls it and the argument we use is -l like netcat's listen mode 2022-07-13 20:30:27 +02:00
BodgeMaster 9639ef065f tools/hexnet: Work on argument parser to finish suppurt for client mode 2022-07-13 20:27:58 +02:00
BodgeMaster 310011a6da tools/hexnet: replace exit codes with macros to improve readability 2022-07-13 06:06:09 +02:00
BodgeMaster 6a5096dfa3 tools/hexnet: add server/client concept to arguments parser 2022-07-13 06:03:41 +02:00
BodgeMaster b3cd8709fb Tools: Add WIP hexnet tool. This will be similar to hexdump and netcat in one.
Yes, I am using this as an exercise for myself to figure out networking.
2022-07-12 05:13:01 +02:00
BodgeMaster eaedc0cb56 Build instructions: add missing dep 2022-07-12 05:12:23 +02:00
BodgeMaster e608d82444 Dependencies: add sockpp 2022-07-12 01:51:23 +02:00
Shwoomple e01ce8f0ce gitignore: Update gitignore for vscode 2022-07-06 18:33:42 +05:30
Shwoomple 346161de1d Merge branch 'master' of https://lostcave.ddnss.de/git/BodgeMaster/FOSS-VG 2022-07-06 18:30:16 +05:30
Shwoomple 68484c6a20 NBT: Moar nbt helper functions. Add all functions in issue #18 except writeString 2022-07-06 18:28:02 +05:30
BodgeMaster a1b200b694 Build system: verify downloaded files 2022-07-06 14:15:40 +02:00
BodgeMaster 91ec84e625 Documentation: Fix typos and formatting 2022-07-06 13:57:07 +02:00
Shwoomple 847b73c6ae NBT: implement the overloaded writeInt8Array 2022-07-06 17:16:47 +05:30
BodgeMaster ecd1bfa496 Merge branch 'master' of https://lostcave.ddnss.de/git/BodgeMaster/FOSS-VG 2022-07-06 13:33:44 +02:00
BodgeMaster bb8c597ec2 Documentation: add detailed build system documentation, add documentation for some files in resources 2022-07-06 13:33:10 +02:00
Shwoomple 18184294df Merge branch 'master' of https://lostcave.ddnss.de/git/BodgeMaster/FOSS-VG 2022-07-06 16:30:16 +05:30
Shwoomple 8d8c1e6b90 NBT: change "[]" to "Array" in unit test messages. 2022-07-06 16:28:08 +05:30
Shwoomple b0ccc74409 NBT: Added writeInt8Array. 2022-07-06 16:27:32 +05:30
BodgeMaster 4e2a9f6297 Environment: remove useless environment variable specification from build alias 2022-07-06 12:29:52 +02:00
BodgeMaster 3f6e74ed4e Build system: add single threaded mode 2022-07-06 10:50:55 +02:00
BodgeMaster 51200e7d75 Resources: Add two files that contain the same data, one being normal UTF-8, the other being Java-style unicode 2022-07-05 19:57:43 +02:00
BodgeMaster b428b17647 Reoucres: add a Java tool to convert normal strings into Java-style strings 2022-07-05 19:35:37 +02:00
BodgeMaster 762ba7f089 NBT: add write helpers for float types 2022-07-04 19:43:31 +02:00
BodgeMaster 8c7be385ae NBT: add write helpers for int32 and int64 2022-07-04 18:29:38 +02:00
BodgeMaster 6d62d995df NBT: implement write helpers for int8 and int16 2022-07-04 18:03:40 +02:00
BodgeMaster 044593e081 NBT: add compiler errors to the endian specific sections 2022-07-02 16:41:54 +02:00
BodgeMaster 664632d111 NBT: add stub write helper functions 2022-07-02 02:08:32 +02:00
BodgeMaster f18874019b fix copyright notice 2022-07-02 01:04:32 +02:00
BodgeMaster 4f9577eb36 NBT: implement readFloat helpers 2022-07-01 21:15:18 +02:00
BodgeMaster 38b2a6f270 add pragma once to endianness check result 2022-07-01 14:09:46 +02:00
BodgeMaster 1dcf37c0fc add our own endianness check because there is apparently no proper way to check for that at compile time 2022-07-01 13:57:20 +02:00
BodgeMaster 975cdd309d NBT: implement NBT::helper::readInt64Array 2022-06-30 11:02:30 +02:00
BodgeMaster edcf40d5a5 NBT: implement NBT::helper::readInt32Array 2022-06-30 10:45:12 +02:00
BodgeMaster 562fbcecbb remove pointless placeholder, rename /test to /test_data because the actual tests live in /src/test 2022-06-29 12:34:27 +02:00
BodgeMaster c8be03dfa3 Merge branch 'master' of https://lostcave.ddnss.de/git/BodgeMaster/FOSS-VG 2022-06-29 12:26:24 +02:00
BodgeMaster c87c519bb5 NBT: implement NBT::helper::readInt8Array 2022-06-29 12:22:54 +02:00
BodgeMaster 71fab21dfb Error: add OVERRUN_ERROR 2022-06-29 11:32:33 +02:00
Gregory Powers 8c9990de1b Switched spaces for tabs in the makefile so it works 2022-06-28 22:33:19 -04:00
BodgeMaster d43ef67ed1 NBT: fix bug in readInt64, improve readability 2022-06-29 00:05:02 +02:00
BodgeMaster ed429633e5 NBT Test: fix begin of data test for int64, remove irrelevant (and architecture-specific) suffixes 2022-06-29 00:02:51 +02:00
BodgeMaster 7c12a92b2a NBT: implement the integer helper functions 2022-06-28 22:04:04 +02:00
BodgeMaster 12b4a8bb55 Tests: fix up alias and implement first tests 2022-06-28 22:03:27 +02:00
BodgeMaster d37f5581c3 assert.h++: fix failure handling 2022-06-28 20:11:24 +02:00
BodgeMaster c61aca5b72 assert.h++: simple ASSERT() macro 2022-06-28 19:55:22 +02:00
BodgeMaster 9b0d54165d test.sh: add copyright notice (and fix a linking issue caused by argument order -_-) 2022-06-28 19:53:38 +02:00