--- gforth/errors.fs 2002/04/01 15:34:34 1.12 +++ gforth/errors.fs 2007/01/14 22:19:35 1.16 @@ -1,6 +1,6 @@ \ Load in error strings -\ Copyright (C) 1995,1996,1997,1998,1999 Free Software Foundation, Inc. +\ Copyright (C) 1995,1996,1997,1998,1999,2003 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -18,9 +18,8 @@ \ along with this program; if not, write to the Free Software \ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. -[IFUNDEF] linked \ defined by chains.fs?! -: linked here over @ a, swap ! ; -[THEN] +: linked ( addr -- ) + here over @ a, swap ! ; : errstring ( addr u n -- ) ErrLink linked @@ -90,8 +89,9 @@ decimal \ Gforth's errors: -2048 s" Cannot tick compile-only word (try COMP' ... DROP)" rot errstring +-2049 s" Write to broken pipe" rot errstring -variable next-exception -2049 next-exception ! +variable next-exception -2050 next-exception ! : exception ( addr u -- n ) \ exception- gforth \G @var{n} is a previously unused @code{throw} value in the range @@ -102,4 +102,6 @@ variable next-exception -2049 next-excep next-exception @ -1 next-exception +! ; +-2049 constant broken-pipe-error ( -- n ) \ gforth +\G the error number for a broken pipe