[gforth] / gforth / kernel / int.fs  

gforth: gforth/kernel/int.fs

Diff for /gforth/kernel/int.fs between version 1.109 and 1.110

version 1.109, Wed Dec 8 12:47:30 2004 UTC version 1.110, Wed Dec 8 18:39:01 2004 UTC
Line 104 
Line 104 
 \ number? number                                       23feb93py  \ number? number                                       23feb93py
   
 hex  hex
 const Create bases   0A , 10 ,   2 ,   0A  const Create bases   0A , 10 ,   2 ,   0A ,
 \                    10   16     2     10  \                    10   16     2     10
   
 \ !! protect BASE saving wrapper against exceptions  \ !! protect BASE saving wrapper against exceptions
 : getbase ( addr u -- addr' u' )  : getbase ( addr u -- addr' u' )
     2dup s" 0x" string-prefix? >r      2dup s" 0x" string-prefix? >r
     2dup s" 0X" string-prefix? r> or      2dup s" 0X" string-prefix? r> or
     base @ #33 < and if      base @ #34 < and if
         hex 2 /string          hex 2 /string
     endif      endif
     over c@ [char] # - dup 4 u<      over c@ [char] # - dup 4 u<


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help