CFFIをClozure Common Lisp 1.6にロードしたところ、(ql:quickload "cffi")
でCFFI-FEATURES:X86 CFFI-FEATURES:UNIX :CFFI
があり、*features*
にあります。いくつか他の人がcffi:
でも動作しながら、Clozure Common LispでCFFIを使用するパッケージ接頭辞との混乱
? (documentation 'cffi:null-pointer 'function)
"Construct and return a null pointer."
? (documentation 'cffi-sys:%foreign-funcall 'function)
"Perform a foreign function call, document it more later."
:
cffi_0.10.6/src/cffi-openmcl.lisp
に探し
? (documentation 'cffi:null-pointer 'function)
"Construct and return a null pointer."
? (documentation 'cffi:%foreign-funcall 'function)
> Error: Reader error: No external symbol named "%FOREIGN-FUNCALL" in package #<Package "CFFI">.
> While executing: CCL::%PARSE-TOKEN, in process listener(1).
> Type :GO to continue, :POP to abort, :R for a list of available restarts.
> If continued: Use the internal symbol CFFI-SYS:%FOREIGN-FUNCALL
> Type :? for other options.
私は(defpackage #:cffi-sys ...
を見ることができますので、どのように来るしかし私は、なぜCFFIの機能がcffi-sys:
接頭辞と表示されているいくつかの好奇心が強いですそのcffi:null-pointer
は機能しますか?
これは意味があります。つまり、私のコードには 'cffi:'を付けるべきです。 – FilipK