[gforth] / gforth / wordinfo.fs  

gforth: gforth/wordinfo.fs

Diff for /gforth/wordinfo.fs between version 1.13 and 1.14

version 1.13, Mon Aug 26 10:07:22 1996 UTC version 1.14, Sun Jul 6 14:29:34 1997 UTC
Line 22 
Line 22 
 \ If you want check values then exclude comments,  \ If you want check values then exclude comments,
 \ but keep in mind that this can't be cross-compiled  \ but keep in mind that this can't be cross-compiled
   
 INCLUDE look.fs  \ INCLUDE look.fs
   
 \ Wordinfo is a tool that checks a nfa  \ Wordinfo is a tool that checks a nfa
 \ and finds out what wordtype we have  \ and finds out what wordtype we have
Line 61 
Line 61 
 \ the above words could be factored with create-does>, but this would  \ the above words could be factored with create-does>, but this would
 \ probably make this file incompatible with cross.  \ probably make this file incompatible with cross.
   
 : prim? ( nfa -- flag )  [IFDEF] forthstart
         name>int  : xtprim? ( xt -- flag )
         forthstart u< ;          forthstart u< ;
   [ELSE]
   : xtprim? ( xt -- flag )
           dup >body swap >code-address = ;
   [THEN]
   : prim? ( nfa -- flag )
           name>int xtprim? ;
   
 \ None nestable IDs:  \ None nestable IDs:
   


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help