Diff for /gforth/prims2x.fs between versions 1.21 and 1.24

version 1.21, 1996/05/09 18:13:02 version 1.24, 1996/08/21 14:58:43
Line 42 Line 42
   
 warnings off  warnings off
   
   \ require interpretation.fs
 require debugging.fs  require debugging.fs
 [IFUNDEF] vocabulary    include search-order.fs [THEN]  [IFUNDEF] vocabulary    include search-order.fs [THEN]
 [IFUNDEF] environment?  include environ.fs      [THEN]  [IFUNDEF] environment?  include environ.fs      [THEN]
Line 56  maxchar 1+ constant eof-char Line 57  maxchar 1+ constant eof-char
 : read-whole-file ( c-addr1 file-id -- c-addr2 )  : read-whole-file ( c-addr1 file-id -- c-addr2 )
 \ reads the contents of the file file-id puts it into memory at c-addr1  \ reads the contents of the file file-id puts it into memory at c-addr1
 \ c-addr2 is the first address after the file block  \ c-addr2 is the first address after the file block
   >r dup -1 r> read-file throw + ;    >r dup $7fffffff r> read-file throw + ;
   
 variable rawinput \ pointer to next character to be scanned  variable rawinput \ pointer to next character to be scanned
 variable endrawinput \ pointer to the end of the input (the char after the last)  variable endrawinput \ pointer to the end of the input (the char after the last)
Line 164  print-token ! Line 165  print-token !
     0. r> 6 chars + 20 >number drop >r drop line ! r> ( c-addr )      0. r> 6 chars + 20 >number drop >r drop line ! r> ( c-addr )
     dup c@ bl = if      dup c@ bl = if
         char+ dup c@ [char] " <> abort" sync line syntax"          char+ dup c@ [char] " <> abort" sync line syntax"
         char+ dup 100 [char] " scan drop swap 2dup - save-string filename 2!          char+ dup 100 [char] " scan drop swap 2dup - save-mem filename 2!
         char+          char+
     endif      endif
     dup c@ nl-char <> abort" sync line syntax"      dup c@ nl-char <> abort" sync line syntax"

Removed from v.1.21  
changed lines
  Added in v.1.24


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