Skip to content
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

Bindings generation #5

Open
dmjio opened this issue Sep 9, 2018 · 2 comments
Open

Bindings generation #5

dmjio opened this issue Sep 9, 2018 · 2 comments

Comments

@dmjio
Copy link

dmjio commented Sep 9, 2018

@TerrorJack 👋

Was curious, were these bindings manually written or generated? And if generated, what tool did you use?

https://github.com/TerrorJack/direct-rocksdb/blob/master/src/Database/RocksDB/Internals.hs

@TerrorJack
Copy link
Owner

@dmjio Hi, they were mostly generated from a Python script I wrote last year. I manually run gcc -E on the header first, strip some useless parts from the gigantic output (usually related to standard library), then use pycparser in my script to process that header and generate the foreign import declarations.

@chessai
Copy link

chessai commented Sep 9, 2018

@TerrorJack do you happen to have that python script anywhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants