--- gforth/quotes.fs 2007/08/11 09:12:06 1.11 +++ gforth/quotes.fs 2008/07/15 16:11:49 1.16 @@ -1,12 +1,12 @@ \ quote: S\" and .\" words -\ Copyright (C) 2002,2003,2005 Free Software Foundation, Inc. +\ Copyright (C) 2002,2003,2005,2007,2008 Free Software Foundation, Inc. \ This file is part of Gforth. \ Gforth is free software; you can redistribute it and/or \ modify it under the terms of the GNU General Public License -\ as published by the Free Software Foundation; either version 2 +\ as published by the Free Software Foundation, either version 3 \ of the License, or (at your option) any later version. \ This program is distributed in the hope that it will be useful, @@ -15,8 +15,16 @@ \ GNU General Public License for more details. \ You should have received a copy of the GNU General Public License -\ along with this program; if not, write to the Free Software -\ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. +\ along with this program. If not, see http://www.gnu.org/licenses/. + +[ifundef] umin +: umin ( u1 u2 -- u ) + 2dup u> + if + swap + then + drop ; +[then] : char/ ; immediate @@ -85,8 +93,8 @@ interpret/compile: s\" ( compilation 'cc \G Like @code{S"}, but translates C-like \-escape-sequences, as \G follows: @code{\a} BEL (alert), @code{\b} BS, @code{\e} ESC (not in \G C99), @code{\f} FF, @code{\n} newline, @code{\r} CR, @code{\t} HT, -\G @code{\v} VT, @code{\"} ", @code{\\} \, @code{\}[0-7]{1,3} octal -\G numerical character value (non-standard), @code{\x}[0-9a-f]{0,2} +\G @code{\v} VT, @code{\"} ", @code{\\} \, @code{\}[0-7]@{1,3@} octal +\G numerical character value (non-standard), @code{\x}[0-9a-f]@{0,2@} \G hex numerical character value (standard only with two digits); a \G @code{\} before any other character is reserved.