[gforth] / gforth / debugs.fs  

gforth: gforth/debugs.fs

Diff for /gforth/debugs.fs between version 1.6 and 1.7

version 1.6, Sat Sep 23 15:46:52 2000 UTC version 1.7, Wed Dec 4 16:56:31 2002 UTC
Line 38 
Line 38 
   
 defer printdebugdata ( -- ) \ gforth print-debug-data  defer printdebugdata ( -- ) \ gforth print-debug-data
 ' .s IS printdebugdata  ' .s IS printdebugdata
 defer printdebugline ( addr -- ) \ gforth print-debug-line  defer .debugline ( nfile nline -- ) \ gforth print-debug-line
   
 : (printdebugline) ( addr -- )  : (.debugline) ( nfile nline -- )
     cr print-sourcepos ." :"      cr .sourcepos ." :"
     \ it would be nice to print the name of the following word,      \ it would be nice to print the name of the following word,
     \ but that's not easily possible for primitives      \ but that's not easily possible for primitives
     printdebugdata      printdebugdata
     cr ;      cr ;
   
 ' (printdebugline) IS printdebugline  ' (.debugline) IS .debugline
   
 : (~~) ( -- )  
     r@ printdebugline  
     r> sourcepos %size + >r ;  
   
 : ~~ ( compilation  -- ; run-time  -- ) \ gforth tilde-tilde  : ~~ ( compilation  -- ; run-time  -- ) \ gforth tilde-tilde
     POSTPONE (~~) sourcepos, ; immediate      compile-sourcepos POSTPONE .debugline ; immediate
   


Generate output suitable for use with a patch program
Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help