[gforth] / gforth / libffi.fs  

gforth: gforth/libffi.fs

Diff for /gforth/libffi.fs between version 1.16 and 1.19

version 1.16, Sun Mar 16 21:39:59 2008 UTC version 1.19, Tue Apr 22 14:50:59 2008 UTC
Line 23 
Line 23 
   
 require libcc.fs  require libcc.fs
   
   s" libffi" open-lib 0= [if]
       .( cannot open libffi ) cr abort
   [then]
   
 \c #include <ffi.h>  \c #include <ffi.h>
 \c static Cell *gforth_RP;  \c static Cell *gforth_RP;
 \c static char *gforth_LP;  \c static char *gforth_LP;
Line 78 
Line 82 
 \c                      (void *)a_rvalue, (void **)a_avalues)  \c                      (void *)a_rvalue, (void **)a_avalues)
 c-function ffi-call ffi_call1 a a a a -- void  c-function ffi-call ffi_call1 a a a a -- void
   
 \c #define ffi-prep-closure1(a_ip, a_cif, a_closure) \  \c #define ffi_prep_closure1(a_ip, a_cif, a_closure) \
 \c              ffi_prep_closure((ffi_closure *)a_closure, (ffi_cif *)a_cif, gforth_callback_ffi, (void *)a_ip)  \c              ffi_prep_closure((ffi_closure *)a_closure, (ffi_cif *)a_cif, gforth_callback_ffi, (void *)a_ip)
 c-function ffi-prep-closure a a a -- n  c-function ffi-prep-closure a a a -- n
   


Generate output suitable for use with a patch program
Legend:
Removed from v.1.16  
changed lines
  Added in v.1.19

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help