[gforth] / gforth / libffi.fs  

gforth: gforth/libffi.fs

Diff for /gforth/libffi.fs between version 1.21 and 1.22

version 1.21, Sun Jun 1 12:18:56 2008 UTC version 1.22, Tue Jun 17 20:18:11 2008 UTC
Line 23 
Line 23 
   
 require libcc.fs  require libcc.fs
   
 clear-libs s" ffi" add-lib  c-library libffi
   s" ffi" add-lib
   
 \c #include <ffi.h>  \c #include <ffi.h>
 \c static Cell *gforth_RP;  \c static Cell *gforth_RP;
Line 142 
Line 143 
 \c #define ffi_ret_double1(r) (*(double *)(gforth_ritem) = r)  \c #define ffi_ret_double1(r) (*(double *)(gforth_ritem) = r)
 c-function ffi-ret-double1 ffi_ret_double1 r -- void  c-function ffi-ret-double1 ffi_ret_double1 r -- void
 : ffi-ret-double ( r -- ) ffi-ret-double1 ffi-ret-void ;  : ffi-ret-double ( r -- ) ffi-ret-double1 ffi-ret-void ;
   end-c-library
   
 \ common stuff, same as fflib.fs  \ common stuff, same as fflib.fs
   


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help