--- gforth/tags.fs 2007/12/31 18:40:24 1.6 +++ gforth/tags.fs 2010/01/22 21:19:43 1.12 @@ -1,6 +1,6 @@ \ 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 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -34,7 +34,7 @@ \ (e.g. via shared memory) \ 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 must be a deferred word that is called to create the name. @@ -48,7 +48,7 @@ \ 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. -\ require search.fs +require search.fs require extend.fs : tags-file-name ( -- c-addr u ) @@ -66,7 +66,8 @@ create tags-line 128 chars allot : tags-file-id ( -- file-id ) 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 \ if \ the file does not exist \ drop w/o create-file throw