aboutsummaryrefslogtreecommitdiff
path: root/src/stubs
Commit message (Collapse)AuthorAgeFilesLines
* Lowercase the stupid file, Windows. ARGH.Gravatar Michael Smith 2024-10-011-0/+0
| | | | Actually kind of Neovim's fault, I think. Whatever.
* Rework OS abstractionsGravatar Michael Smith 2024-08-222-0/+13
| | | | | | | | | | | | | | | | | | | | | | - As much as possible avoid dragging system headers into translation units. This should avoid namespace pollution and, hopefully, speed up builds a little bit. - Avoid leaning on the UCRT so much on Windows - prefer native win32 calls and native file handles except where doing so is inconvenient (in particular, for stat(), which we might try and replace later). - Also, switch from SystemFunction036 to ProcessPrng on Windows. This requires us to generate a stub for bcryptprimitives.dll because Microsoft haven't bothered to provide a link library, but the function is better-documented and seems to be a more direct under-the-hood call as well. Apparently it's what's used by the major web browsers these days, which seems like a good indication it's stable and trusted. - Lastly, remove a bunch of functions and macros and stuff that weren't actually being used. It seems good to try and keep the scope of OS-dependent stuff relatively contained and only add to it when actually required.
* Get things at least compiling under LinuxGravatar Michael Smith 2023-08-271-1/+5
| | | | | | | | | | | Nothing really works yet, but at least test.h and fastspin are fixed and some of the issues with RTTI and libdl and stuff are maybe kind of sorted, subject to more testing later. The main issue now seems to be the cvar interface not quite lining up and crashing pretty much immediately. That'll probably take a lot more debugging to figure out, which likely still won't be a priority for quite a while.
* Tidy up stubs, make vstdlib a stub, build on LinuxGravatar Michael Smith 2022-01-063-0/+29
Important note: it doesn't WORK on Linux, and there's tons of warnings and stuff, but it's easier to work on when all the compiler output and whatnot is there.