Diff for /gforth/debugs.fs between versions 1.7 and 1.13

version 1.7, 2002/12/04 16:56:31 version 1.13, 2005/12/31 15:46:08
Line 1 Line 1
 \ Simple debugging aids  \ Simple debugging aids
   
 \ Copyright (C) 1995,1997,1999 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  :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.7  
changed lines
  Added in v.1.13


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