Diff for /gforth/tags.fs between versions 1.6 and 1.13

version 1.6, 2007/12/31 18:40:24 version 1.13, 2010/12/31 18:09:02
Line 1 Line 1
 \ VI tags support for GNU Forth.  \ VI tags support for GNU Forth.
   
 \ Copyright (C) 1995,1998,2002,2003 Free Software Foundation, Inc.  \ Copyright (C) 1995,1998,2002,2003,2007,2008,2009,2010 Free Software Foundation, Inc.
   
 \ This file is part of Gforth.  \ This file is part of Gforth.
   
Line 34 Line 34
 \ (e.g. via shared memory)  \ (e.g. via shared memory)
   
 \ This is ANS Forth with the following serious environmental  \ This is ANS Forth with the following serious environmental
 \ dependences: the variable LAST must contain a pointer to the last  \ dependences: the word LATEST must return a pointer to the last
 \ header, NAME>STRING must convert that pointer to a string, and  \ header, NAME>STRING must convert that pointer to a string, and
 \ HEADER must be a deferred word that is called to create the name.  \ HEADER must be a deferred word that is called to create the name.
   
Line 48 Line 48
 \ to comment out search.fs since it sets the search order destructively  \ to comment out search.fs since it sets the search order destructively
 \ on my system.  Added a bit more explanation on how to use tags.fs.  \ on my system.  Added a bit more explanation on how to use tags.fs.
   
 \ require search.fs  require search.fs
 require extend.fs  require extend.fs
   
 : tags-file-name ( -- c-addr u )  : tags-file-name ( -- c-addr u )
Line 66  create tags-line 128 chars allot Line 66  create tags-line 128 chars allot
   
 : tags-file-id ( -- file-id )  : tags-file-id ( -- file-id )
     tags-file @ 0= if      tags-file @ 0= if
         tags-file-name w/o create-file throw          s" sort >tags" w/o open-pipe throw
   \       tags-file-name w/o create-file throw
 \       2dup file-status  \       2dup file-status
 \       if \ the file does not exist  \       if \ the file does not exist
 \           drop w/o create-file throw  \           drop w/o create-file throw

Removed from v.1.6  
changed lines
  Added in v.1.13


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