Diff for /gforth/debugs.fs between versions 1.8 and 1.10

version 1.8, 2003/03/09 15:16:47 version 1.10, 2004/05/14 17:09:22
Line 1 Line 1
 \ Simple debugging aids  \ Simple debugging aids
   
 \ Copyright (C) 1995,1997,1999,2002 Free Software Foundation, Inc.  \ Copyright (C) 1995,1997,1999,2002,2003 Free Software Foundation, Inc.
   
 \ This file is part of Gforth.  \ This file is part of Gforth.
   
Line 39  require source.fs Line 39  require source.fs
 defer printdebugdata ( -- ) \ gforth print-debug-data  defer printdebugdata ( -- ) \ gforth print-debug-data
 ' .s IS printdebugdata  ' .s IS printdebugdata
 defer .debugline ( nfile nline -- ) \ gforth print-debug-line  defer .debugline ( nfile nline -- ) \ gforth print-debug-line
   \G Print the source code location indicated by @var{nfile nline}, and
   \G additional debugging information; the default @code{.debugline}
   \G prints the additional information with @code{printdebugdata}.
   
 : (.debugline) ( nfile nline -- )  : (.debugline) ( nfile nline -- )
     cr .sourcepos ." :"      cr .sourcepos ." :"
Line 49  defer .debugline ( nfile nline -- ) \ gf Line 52  defer .debugline ( nfile nline -- ) \ gf
   
 ' (.debugline) IS .debugline  ' (.debugline) IS .debugline
   
 : ~~ ( compilation  -- ; run-time  -- ) \ gforth tilde-tilde  :noname ( -- )
     compile-sourcepos POSTPONE .debugline ; immediate      current-sourcepos .debugline ;
   :noname ( compilation  -- ; run-time  -- )
       compile-sourcepos POSTPONE .debugline ;
   interpret/compile: ~~  \ gforth tilde-tilde
   \G Prints the source code location of the @code{~~} and the stack
   \G contents with @code{.debugline}.
   

Removed from v.1.8  
changed lines
  Added in v.1.10


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