color-flood-for-amstrad-cpc
libwheel
color-flood-for-amstrad-cpc | libwheel | |
---|---|---|
1 | 1 | |
3 | 7 | |
- | - | |
10.0 | 8.0 | |
over 1 year ago | about 1 month ago | |
C | C | |
- | GNU Affero General Public License v3.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
color-flood-for-amstrad-cpc
-
Few lesser known tricks, quirks and features of C
const int myarray[mysize];
* Good news: C can do compile time constant structs and array with deep self-references.
Yes, in C you can define and fully declare complex data structures that are accepted as compile-time constants, including pointers to parts of itself.
See "self-contained, statically allocated, totally const data structure with backward and forward references (pointers)?" for a previous example at https://stackoverflow.com/questions/47037701/can-c-syntax-de...
-----------------
I used this for a game on a retro machine where such a data structure avoids code which would have been several times (perhaps 10 times) bigger: https://github.com/cpcitor/color-flood-for-amstrad-cpc/blob/...
Here's another take showing two variant: where overall construct is an array then a struct: https://gist.github.com/fidergo-stephane-gourichon/792c194e1...
libwheel
-
Few lesser known tricks, quirks and features of C
> C11 added _Generic to language, but turns out metaprogramming by inhumanely abusing the preporcessor is possible even in pure C99: meet Metalang99 library.
I'm actually working on a library doing just that! It's still in very (very) early development, but maybe someone may find it to be interesting. [GitHub](https://github.com/jenspots/libwheel).
[Here](https://github.com/jenspots/libwheel/blob/main/include/wheel... the implementation of a vector. [Here](https://github.com/jenspots/libwheel/blob/main/tests/impl/st...) is a test file implementing a vector of strings.
What are some alternatives?
printf-tac-toe - tic-tac-toe in a single call to printf
printbf - Brainfuck interpreter inside printf
FFmpeg - Mirror of https://git.ffmpeg.org/ffmpeg.git
obs-studio - OBS Studio - Free and open source software for live streaming and screen recording
scrcpy - Display and control your Android device
Git - Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget (https://gitgitgadget.github.io/). Please follow Documentation/SubmittingPatches procedure for any of your improvements.