aboutsummaryrefslogtreecommitdiff
path: root/src/mem.h
Commit message (Collapse)AuthorAgeFilesLines
* Tidy up some extensions and remove some ifdefsGravatar Michael Smith 2025-08-031-4/+1
| | | | | | | | | | | | | | | | | | | | | Since this codebase is already extremely nonportable, I've decided to relax the obsessive ifdef-else-error usage around all the extensions. From now on, if there's no alternative to using an extension, we can just use that extension. If it's possible to do something in a relatively portable way, we can still try to do that in order to make the code somewhat reusable, in contexts where that makes sense. I also decided to use langext.h for naked functions and tail calls. If that's used in another codebase build with a different compiler, those just won't work, but that's fine. The benefit is really just that there's less ceremony in places where those are used, because it's likely there'll be a few more such places in the future, and it gets annoying reading all the double-underscore stuff all over the place. I still kind of want to do something about all the _WIN32 ifdefs too, but I've realised that doing so will lead to almost nothing actually being built on Linux. Then again, none of it currently runs on Linux so I guess that's a moot point. Will worry about it later, anyway.
* Remove years from copyright headersGravatar Michael Smith 2025-04-071-1/+1
| | | | | | | | They're legally unnecessary as far as I know, and kind of annoying to maintain on a long-term basis. This was done with the consent of all 3 other contributors, in case anyone was wondering.
* Rewrite the gamedata and entprops systems entirelyGravatar Michael Smith 2024-08-231-1/+1
| | | | | | | | | | | | This removes the horrible janky old KeyValues parser and replaces it with a couple of trivial ad-hoc text parsers. In doing so, make the format of the actual gamedata files more human-friendly too. We also gain support for nested SendTables in mkentprops, which are required to get at various things like player velocity. And, the actual string matching is made more efficient (or, at least, more scalable) by way of a cool radix tree thing which generates a bunch of switch cases on distinct characters.
* Learn to spell correctlyGravatar Michael Smith 2024-01-211-4/+4
|
* Rethink mem_loadoffset, and consequently, kill itGravatar Michael Smith 2024-01-211-10/+25
| | | | | | | | | Suggested by bill. Having something semantically pointer-sized that's only ever used for stuff that's always 32-bit doesn't really make sense. Note that I intentionally did not add a copyright line for myself in hud.c because, I mean, come on. I'll just say I waive any claim to that tiny trivial change.
* Prune some comments and tidy up other minor thingsGravatar Michael Smith 2023-06-101-6/+6
|
* Tidy up mem.h and prevent horrible assembly outputGravatar Michael Smith 2023-04-171-29/+15
| | | | Removes the mem_store functions because they're never used anywhere.
* Clean up some random bits and bobsGravatar Michael Smith 2022-05-161-0/+5
|
* Spruce up text and fix some copyright yearsGravatar Michael Smith 2022-03-191-1/+1
| | | | Sometimes, you just want to Unicode.
* Initial public snapshotGravatar Michael Smith 2021-11-201-0/+73
With code from Bill. Thanks Bill!