-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate LibWindows bindings instead of write them? #5
Comments
It would be a good idea. It should always be generated from the official C headers. Documentation may omit constant values, private struct properties, ... which would lead to invalid bindings. The POSIX bindings generator tries to map header files one-to-one (for example I suppose the POSIX generator can be used to create bindings for the Windows API, too —in which case I shall rename it. If someone can send me the Windows |
I installed Windows SDK 7.0 in a VM. It contains headers, system libraries for linking and a working C/C++ compiler and linker. Unfortunately it seems these files cannot be packed with crystal itself, they would need to be installed manually by users (not hard, just an extra manual step). Headers are attached here, it is as official as it can get. The mingw version of them seem to be written from scratch. So if this version is hard to use for any reason, we can try with mingw headers. I packed all headers that are provided with the SDK, they are many. The only thing that matters is |
I'm missing some headers, those distributed with MSVC I believe, for example |
Here are the ones that came with the Visual C compiler (also bundled in the SDK, but was in a different location). Is that it? |
Exactly. But now I have an issue with filenames, since windows is case insensitive... I thus have |
I got a case-insensitive filesystem... yet After a few You may try https://github.com/ysbaddaden/posix/tree/windows, extract the The definitions are YAML files under |
Similar to what is done for LibC bindings on other plataforms. The source could be
windows.h
and related files from some C compiler, could be extracted from the MSDN documentation itself (page scraping?), or some other more authoritative source. Maybe from C# sources?The text was updated successfully, but these errors were encountered: