aboutsummaryrefslogtreecommitdiff
path: root/src/3p/chibicc/hashmap.c
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite and redesign codegen and feature systemGravatar Michael Smith 2025-04-061-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Also switch to somewhat proper C23 flags while we're at it. This is a huge change. It took me forever, in between being really busy. Sorry about that. But the good news is I'm now free to start integrating the various patches that have accumulated since last release. Well, at least in between still being really busy. Gotta manage expectations. The main benefit of introducing GAMESPECIFIC() is that features that don't apply to a particular game no longer show up *at all*, and less time is wasted on init. It also enables a cool optimisation wherein unnecessary REQUIRE_GAMEDATA() checks can elided at compile time whenever the gamedata is known up-front to always exist in supported games. The DEF_FEAT_CVAR macro family meanwhile makes it easier to manage the lifecycle of cvars/ccmds, with less manual registering, unhiding and such. Originally I was going to try and just hack these features into the existing codegen abomination, but it just got too terrible. This rewrite should make it easier to continue tweaking codegen behaviour in future. It also has slightly better error messages.
* Remove some more unused chibicc bitsGravatar Michael Smith 2022-04-141-31/+0
|
* Initial public snapshotGravatar Michael Smith 2021-11-201-0/+165
With code from Bill. Thanks Bill!