#5 FOREIGN-FUNCTION+VARIABLE for everybody

closed-accepted
None
5
2002-04-24
2002-04-24
No

> Part 1 is like ready: include C-self and
clisp_ffi_redirector
> (change names) in foreign.d
Appended.

This will allow CLISP FFI self-test (and dozens of
hacks) once I (another time) submit my
tests/foreign.tst file.

the two FOREIGN-VARIABLE and FOREIGN-FUNCTION objects
are also of independent use (not only test). My ffi-ext
is based on their precious aid.

(eval-when (eval load)
(ffi:def-c-call-out c-self
(:name "ffi_identity")
(:arguments (obj ffi:int))
(:return-type ffi:int))
(ffi:def-c-var clisp-ffi-indirector (:type
ffi:c-pointer)
(:name "ffi_user_pointer"))
)

They were called clisp_ffi_indirector and C_self in
earlier files of mine (e.g. dynload.d).

Regards,
Jörg Höhle.

Discussion

  • Jörg Höhle

    Jörg Höhle - 2002-04-24

    provide ffi_identity and ffi_user_pointer objects

     
  • Sam Steingold

    Sam Steingold - 2002-04-24
    • assigned_to: nobody --> sds
    • status: open --> closed-accepted
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks