[gforth] / gforth / kernel / nio.fs  

gforth: gforth/kernel/nio.fs

Diff for /gforth/kernel/nio.fs between version 1.18 and 1.19

version 1.18, Sun Mar 9 15:17:06 2003 UTC version 1.19, Sun Feb 26 17:23:47 2006 UTC
Line 28 
Line 28 
   
 \ hold <# #> sign # #s                                 25jan92py  \ hold <# #> sign # #s                                 25jan92py
   
   has? EC [IF]
       : hld  ( -- addr )  pad cell - ;
       : hold  ( char -- )  hld -1 over +! @ c! ;
       : <#    hld dup ! ;
       : #>   ( d -- addr +n )  2drop hld dup @ tuck - ;
       ' <# alias <<#
       ' noop alias #>>
   [ELSE]
 : hold    ( char -- ) \ core  : hold    ( char -- ) \ core
     \G Used within @code{<#} and @code{#>}. Append the character      \G Used within @code{<#} and @code{#>}. Append the character
     \G @var{char} to the pictured numeric output string.      \G @var{char} to the pictured numeric output string.
Line 58 
Line 66 
     \G Release the hold area started with @code{<<#}.      \G Release the hold area started with @code{<<#}.
     holdend @ dup holdbuf-end u>= -&11 and throw      holdend @ dup holdbuf-end u>= -&11 and throw
     count chars bounds holdptr ! holdend ! ;      count chars bounds holdptr ! holdend ! ;
   [THEN]
   
 : sign    ( n -- ) \ core  : sign    ( n -- ) \ core
     \G Used within @code{<#} and @code{#>}. If @var{n} (a @var{single}      \G Used within @code{<#} and @code{#>}. If @var{n} (a @var{single}


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