File: README.md

package info (click to toggle)
acl2 8.5dfsg-5
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 991,452 kB
  • sloc: lisp: 15,567,759; javascript: 22,820; cpp: 13,929; ansic: 12,092; perl: 7,150; java: 4,405; xml: 3,884; makefile: 3,507; sh: 3,187; ruby: 2,633; ml: 763; python: 746; yacc: 723; awk: 295; csh: 186; php: 171; lex: 154; tcl: 49; asm: 23; haskell: 17
file content (35 lines) | stat: -rw-r--r-- 1,640 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[![Build Status](https://travis-ci.org/cffi/cffi.svg?branch=master)](https://travis-ci.org/cffi/cffi)

CFFI, the Common Foreign Function Interface, purports to be a portable
foreign function interface for Common Lisp. The CFFI library is
composed of a Lisp-implementation-specific backend in the CFFI-SYS
package, and a portable frontend in the CFFI package.

The CFFI-SYS backend package defines a low-level interface to the
native FFI support in the Lisp implementation. It offers operators for
allocating and dereferencing foreign memory, calling foreign
functions, and loading shared libraries.

The CFFI frontend provides a
declarative interface for defining foreign functions, structures,
typedefs, enumerated types, etc. It is implemented in portable ANSI CL
making use of the low-level operators exported by CFFI-SYS.

CFFI/C2FFI is an ASDF-integrated mechanism to automatically
generate a complete CFFI binding for a C project using the JSON output of
[c2ffi][2]. c2ffi generates its output by using LLVM/Clang as a library
to parse any C project. Until CFFI/C2FFI is properly documented, please
see these projects as examples:
[here](https://github.com/hu-dwim/hu.dwim.bluez),
[here](https://github.com/hu-dwim/hu.dwim.zlib),
[here](https://github.com/hu-dwim/hu.dwim.sdl),
and [here](https://github.com/attila-lendvai/hu.dwim.mosquitto).

Please consult [the manual][1] for further details, including
installation instructions.

Please visit [Launchpad][3] for bug reports and feature suggestions.

[1]: http://common-lisp.net/project/cffi/manual/html_node/
[2]: https://github.com/rpav/c2ffi
[3]: http://bugs.launchpad.net/cffi