Skip to content

Generate C header files from foreign declarations#1429

Merged
yav merged 12 commits intomasterfrom
ffi-generate-headers
Sep 19, 2022
Merged

Generate C header files from foreign declarations#1429
yav merged 12 commits intomasterfrom
ffi-generate-headers

Conversation

@qsctr
Copy link
Collaborator

@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