--- gforth/see.fs 2006/05/07 18:14:11 1.57 +++ gforth/see.fs 2007/12/31 17:34:58 1.62 @@ -1,6 +1,6 @@ \ SEE.FS highend SEE for ANSforth 16may93jaw -\ Copyright (C) 1995,2000,2003,2004 Free Software Foundation, Inc. +\ Copyright (C) 1995,2000,2003,2004,2006,2007 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -71,13 +71,9 @@ DEFER nlcount ' noop IS nlcount nlflag @ IF (nl) nlflag off THEN XPos @ over + cols u>= IF (nl) THEN ; -: c-to-upper ( c1 -- c2 ) \ gforth - \ nac05feb1999 there is a primitive, toupper, with this function - dup [char] a >= over [char] z <= and if bl - then ; - : ctype ( adr len -- ) warp? dup XPos +! C-Output @ - IF uppercase @ IF bounds ?DO i c@ c-to-upper emit LOOP + IF uppercase @ IF bounds ?DO i c@ toupper emit LOOP uppercase off ELSE type THEN ELSE 2drop THEN ; @@ -124,9 +120,10 @@ VARIABLE Colors Colors on else base @ >r try 8 base ! 0 <<# # # # '\ hold #> ctype #>> 0 - recover + restore + r@ base ! endtry - r> base ! throw + rdrop throw endif endif 1 /string @@ -761,6 +758,7 @@ Defer discode ( addr u -- ) \ gforth dup >code-address CASE docon: of seecon endof + dovalue: of seevalue endof docol: of seecol endof dovar: of seevar endof [ [IFDEF] douser: ]