--- gforth/fflib.fs 2006/05/25 22:10:16 1.14 +++ gforth/fflib.fs 2007/12/31 17:34:58 1.17 @@ -1,6 +1,6 @@ \ lib.fs shared library support package 16aug03py -\ Copyright (C) 1995,1996,1997,1998,2000,2003,2005 Free Software Foundation, Inc. +\ Copyright (C) 1995,1996,1997,1998,2000,2003,2005,2006,2007 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -80,13 +80,20 @@ Variable ind-call ind-call off DOES> ( -- ) dup thislib ! proc: ; : init-shared-libs ( -- ) - defers 'cold libs - 0 libs BEGIN @ dup WHILE dup REPEAT drop - BEGIN dup WHILE >r - r@ @lib - r@ 2 cells + BEGIN @ dup WHILE r@ over @proc REPEAT - drop rdrop - REPEAT drop ; + defers 'cold + 0 libs BEGIN + @ dup WHILE + dup REPEAT + drop BEGIN + dup WHILE + >r + r@ @lib + r@ 2 cells + BEGIN + @ dup WHILE + r@ over @proc REPEAT + drop rdrop + REPEAT + drop ; ' init-shared-libs IS 'cold