Diff for /gforth/float.fs between versions 1.59 and 1.63

version 1.59, 2011/10/06 20:04:35 version 1.63, 2011/12/28 13:39:49
Line 88  DOES> ( -- r ) Line 88  DOES> ( -- r )
     \G @code{F.} @code{FE.} and @code{FS.} to @i{u}.      \G @code{F.} @code{FE.} and @code{FS.} to @i{u}.
     to precision ;      to precision ;
   
 : scratch ( r -- addr len )  : scratch ( -- addr len )
   pad precision - precision ;    pad precision - precision ;
   
 : zeros ( n -- )   0 max 0 ?DO  '0 emit  LOOP ;  : zeros ( n -- )   0 max 0 ?DO  '0 emit  LOOP ;
Line 142  DOES> ( -- r ) Line 142  DOES> ( -- r )
     THEN ;      THEN ;
   
 [ifdef] recognizer:  [ifdef] recognizer:
     ' noop      [IFDEF] 2lit,
     :noname postpone Fliteral ;          : flit, postpone Fliteral ;
           :noname ['] noop ;
           :noname ['] flit, ;
       [ELSE]
           ' noop
           :noname postpone Fliteral ;
       [THEN]
     dup      dup
     recognizer: r:fnumber      recognizer: r:fnumber
   
     :noname ( addr u -- nt int-table true | addr u false )      : fnum-recognizer ( addr u -- float int-table | addr u r:fail )
     2dup sfnumber  dup          2dup sfnumber
     IF          IF
         drop 2drop r:fnumber  true              2drop r:fnumber  EXIT
     THEN ; Constant fnum-recognizer          THEN
           r:fail ;
   
 fnum-recognizer  ' fnum-recognizer
 forth-recognizer get-recognizers  forth-recognizer get-recognizers
 1+ forth-recognizer set-recognizers  1+ forth-recognizer set-recognizers
 [else]  [else]

Removed from v.1.59  
changed lines
  Added in v.1.63


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>