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

Generate C header files from foreign declarations #1429

Merged
merged 12 commits into from
Sep 19, 2022
Merged

Conversation

qsctr
Copy link
Contributor

@qsctr qsctr commented Sep 8, 2022

Add a new command :generate-foreign-header that parses and typechecks the given Cryptol file, finds the foreign declarations, translates them to C function declarations, and writes them to a header file.

Closes #1396.

@qsctr qsctr added the FFI Foreign function interface label Sep 8, 2022
@qsctr qsctr self-assigned this Sep 8, 2022
@RyanGlScott
Copy link
Contributor

Rebasing on top of #1430 should fix the Windows CI failures.

@qsctr qsctr marked this pull request as ready for review September 9, 2022 01:14
qsctr and others added 4 commits September 8, 2022 18:17
# Conflicts:
#	docs/RefMan/_build/doctrees/FFI.doctree
#	docs/RefMan/_build/doctrees/environment.pickle
#	docs/RefMan/_build/html/FFI.html
#	docs/RefMan/_build/html/searchindex.js
For now we allow alpha numeric characters and '_' which
should be fairly portable.
@yav yav merged commit 6ab2458 into master Sep 19, 2022
@qsctr qsctr deleted the ffi-generate-headers branch September 1, 2023 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FFI Foreign function interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate FFI header files
3 participants