Diff for /gforth/debugs.fs between versions 1.9 and 1.14

version 1.9, 2003/08/25 14:17:44 version 1.14, 2006/12/28 14:52:20
Line 1 Line 1
 \ Simple debugging aids  \ Simple debugging aids
   
 \ Copyright (C) 1995,1997,1999,2002,2003 Free Software Foundation, Inc.  \ Copyright (C) 1995,1997,1999,2002,2003,2004,2005 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  : .debugline-stderr ( nfile nline -- )
     compile-sourcepos POSTPONE .debugline ; immediate      stderr >outfile .debugline outfile< ;
   
   :noname ( -- )
       current-sourcepos .debugline-stderr ;
   :noname ( compilation  -- ; run-time  -- )
       compile-sourcepos POSTPONE .debugline-stderr ;
   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.9  
changed lines
  Added in v.1.14


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