This PR adds a full rewrite of the whole cutefetch source code in order to:
- Improve the codebase which was quite tricky at some times at least for me.
- Reduce the amount of allocations, with this rewrite we're prolly allocating only in the stack except when reading files and prolly what glibc does under the hood, so we're good
- Fixing memory leaks, before valgrind reported some weird memory leaks, but with this rewrite we're 100% free of memleaks, at least according to valgrind output 😵
- To make proper DESTDIR and PREFIX handling in our Makefile.
- To make the program really C89 compliant so it can build in lots of compilers.
- Prolly for fun?
Note
Maybe could need a little bit more of testing, so issues are appreciated, but for now, seems to work well in all three of the distros I tried:
- Gentoo
- Arch
- Fedora