[gforth] / gforth / fi2c.fs  

gforth: gforth/fi2c.fs

Diff for /gforth/fi2c.fs between version 1.5 and 1.6

version 1.5, Sun Dec 20 23:17:54 1998 UTC version 1.6, Wed Dec 23 09:24:38 1998 UTC
Line 35 
Line 35 
   
 : search-magic ( fd -- )  >r  : search-magic ( fd -- )  >r
     BEGIN  magicbuf 8 r@ read-file throw  8 =  WHILE      BEGIN  magicbuf 8 r@ read-file throw  8 =  WHILE
         magicbuf s" Gforth" tuck compare 0=  UNTIL          magicbuf s" Gforth2" tuck compare 0=  UNTIL
     ELSE  true abort" No magic found"  THEN      ELSE  true abort" No magic found"  THEN
     magicbuf 6 + c@ digit? drop tchars !      1 magicbuf 7 + c@ 5 rshift 3 and lshift tchars !
     magicbuf 7 + c@ digit? drop dup -2 and tcell !      1 magicbuf 7 + c@ 1 rshift 3 and lshift tcell !
     1 and 0= [ pad off 1 pad ! pad c@ 1 = ] Literal = bswap? !      magicbuf 7 + c@ 1 and 0=
       [ pad off 1 pad ! pad c@ 1 = ] Literal = bswap? !
     rdrop ;      rdrop ;
   
 Create image-header  4 cells allot  Create image-header  4 cells allot


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help