[gforth] / gforth / fflib.fs  

gforth: gforth/fflib.fs

Diff for /gforth/fflib.fs between version 1.2 and 1.3

version 1.2, Sat Aug 16 19:46:11 2003 UTC version 1.3, Sat Aug 16 21:09:47 2003 UTC
Line 142 
Line 142 
     Create  0 ] postpone >r also cb-decl      Create  0 ] postpone >r also cb-decl
   DOES>    DOES>
     Create here >r 0 , callbacks @ A, r@ callbacks !      Create here >r 0 , callbacks @ A, r@ callbacks !
     swap postpone Literal compile, postpone EXIT      swap postpone Literal postpone call , postpone EXIT
     r> dup cell+ cell+ alloc-callback swap !      r> dup cell+ cell+ alloc-callback swap !
   DOES> @ ;    DOES> @ ;
   
Line 198 
Line 198 
 libm fmodf sf sf (sf) fmodf  libm fmodf sf sf (sf) fmodf
 libm fmod  df df (fp) fmod  libm fmod  df df (fp) fmod
   
   \ example for a windows callback
   
 callback wincall (int) int int int int callback;  callback wincall (int) int int int int callback;
   
 :noname ( a b c d -- e )  2drop 2drop 0 ; wincall do_timer  :noname ( a b c d -- e )  2drop 2drop 0 ; wincall do_timer
   
   \ test a callback
   
   callback 2:1 (int) int int callback;
   
   : cb-test ( a b -- c )
       cr ." Testing callback"
       cr ." arguments: " .s
       cr ." result " + .s cr ;
   ' cb-test 2:1 c_plus
   
   : test  c_plus av-start-int av-int av-int av-call-int ;
   
   \ 3 4 test
   
 [then]  [then]


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help