--- gforth/kernel/vars.fs 2012/03/16 20:34:23 1.52 +++ gforth/kernel/vars.fs 2012/12/31 15:25:19 1.54 @@ -1,6 +1,6 @@ \ VARS.FS Kernal variables -\ Copyright (C) 1995,1996,1997,1998,2000,2003,2006,2007,2011 Free Software Foundation, Inc. +\ Copyright (C) 1995,1996,1997,1998,2000,2003,2006,2007,2011,2012 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -48,9 +48,9 @@ has? floating [IF] has? EC [IF] 20 cells [ELSE] FF [THEN] Constant /line has? file [IF] -40 Constant c/l -10 Constant l/s -400 Constant chars/block +40 Value c/l +10 Value l/s +400 Value chars/block [THEN] 20 8 2* cells + 2 + cell+ constant word-pno-size ( -- u ) @@ -184,6 +184,16 @@ User dpl ( -- a-addr ) \ gforth \G 0. After the conversion of 234123.9 it contains 1, and so forth. -1 dpl ! +User dp-char ( -- a-addr ) \ VFX +\G @code{User} variable -- @i{a-addr} is the address of a cell that stores the +\G decimal point character for double number conversion +'.' dp-char ! + +User fp-char ( -- a-addr ) \ VFX +\G @code{User} variable -- @i{a-addr} is the address of a cell that stores the +\G decimal point character for floating point number conversion +'.' fp-char ! + User state ( -- a-addr ) \ core,tools-ext \G @code{User} variable -- @i{a-addr} is the address of a cell \G containing the compilation state flag. 0 => interpreting, -1 =>