mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-30 22:05:32 +03:00
1616879c3e
Explaining how to write the most basic Idris bindings for readline, taking account of how to allocate Strings in the completion callback. Also adds the basic API as a sample, which can be used as a starting point for other packages containing C bindings.
11 lines
186 B
Plaintext
11 lines
186 B
Plaintext
package readline
|
|
|
|
sourcedir = "src"
|
|
|
|
modules = Text.Readline
|
|
|
|
prebuild = "make -C readline_glue"
|
|
postinstall = "make -C readline_glue install"
|
|
postclean = "make -C readline_glue clean"
|
|
|