Diff for /gforth/kernel/quotes.fs between versions 1.3 and 1.4

version 1.3, 2000/09/23 15:47:12 version 1.4, 2001/05/04 07:41:03
Line 22 Line 22
   
 require ./vars.fs  require ./vars.fs
   
 create s"-buffer /line chars allot  \ create s"-buffer /line chars allot
 has? compiler 0=   has? compiler 0= 
 [IF] : s" [ELSE] :noname [THEN]  [IF] : s" [ELSE] :noname [THEN]
         [char] " parse          [char] " parse save-mem ;
         /line min >r s"-buffer r@ cmove  \       /line min >r s"-buffer r@ cmove
         s"-buffer r> ;  \       s"-buffer r> ;
 has? compiler [IF]  has? compiler [IF]
 :noname [char] " parse postpone SLiteral ;  :noname [char] " parse postpone SLiteral ;
 interpret/compile: S" ( compilation 'ccc"' -- ; run-time -- c-addr u )  \ core,file     s-quote  interpret/compile: S" ( compilation 'ccc"' -- ; run-time -- c-addr u )  \ core,file     s-quote
   \G Compilation: Parse a string @i{ccc} delimited by a @code{"}    \G Compilation: Parse a string @i{ccc} delimited by a @code{"}
   \G (double quote). At run-time, return the length, @i{u}, and the    \G (double quote). At run-time, return the length, @i{u}, and the
   \G start address, @i{c-addr} of the string. Interpretation: parse    \G start address, @i{c-addr} of the string. Interpretation: parse
   \G the string as before, and return @i{c-addr}, @i{u}. The    \G the string as before, and return @i{c-addr}, @i{u}. Gforth
   \G string is stored in a temporary buffer which may be overwritten    \G @code{allocate}s the string. The resulting memory leak is usually
   \G by subsequent uses of @code{S"}.    \G not a problem; the exception is if you create strings containing
     \G @code{S"} and @code{evaluate} them; then the leak is not bounded
     \G by the size of the interpreted files and you may want to
     \G @code{free} the strings.  ANS Forth only guarantees one buffer of
     \G 80 characters, so in standard programs you should assume that the
     \G string lives only until the next @code{s"}.
 [THEN]  [THEN]
   
 :noname    [char] " parse type ;  :noname    [char] " parse type ;

Removed from v.1.3  
changed lines
  Added in v.1.4


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