[gforth] / gforth / float.fs  

gforth: gforth/float.fs

Diff for /gforth/float.fs between version 1.18 and 1.19

version 1.18, Tue Nov 7 18:06:40 1995 UTC version 1.19, Mon May 13 16:36:55 1996 UTC
Line 100 
Line 100 
   
 require debugging.fs  require debugging.fs
   
 : sfnumber ( c-addr u -- r / )  : sfnumber ( c-addr u -- r true | false )
     2dup [CHAR] e scan      2dup [CHAR] e scan ( c-addr u c-addr2 u2 )
     dup 0=      dup 0=
     IF      IF
         2drop 2dup [CHAR] E scan          2drop 2dup [CHAR] E scan ( c-addr u c-addr3 u3 )
     THEN      THEN
     nip      nip
     IF      IF
         2dup >float          >float
         IF      ELSE
             2drop state @          2drop false
       THEN ;
   
   :noname ( c-addr u -- )
       2dup sfnumber
             IF              IF
                 POSTPONE FLiteral          2drop POSTPONE FLiteral
             THEN      ELSE
             EXIT          defers compiler-notfound
         THEN      ENDIF ;
     THEN  IS compiler-notfound
     defers notfound ;  
   
 ' sfnumber IS notfound  :noname ( c-addr u -- r )
       2dup sfnumber
       IF
           2drop
       ELSE
           defers interpreter-notfound
       ENDIF ;
   IS interpreter-notfound
   
 : fvariable ( -- )  : fvariable ( -- )
     Create 0.0E0 f, ;      Create 0.0E0 f, ;


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help