]> gitweb.factorcode.org Git - factor.git/commit
alien.libraries: load-library is misnamed, refactor library-dll.
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 19 Feb 2018 16:34:06 +0000 (10:34 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 19 Feb 2018 16:38:21 +0000 (10:38 -0600)
commit310a4a247c455ef5a5ea9858815ceaef85ed7440
tree61682e4d4039260914fe6162f888d4944f83b252
parent75b0289e74de60272a2437ab7df06f31bfb1bfce
alien.libraries: load-library is misnamed, refactor library-dll.

load-library implies that dlopen() is called, which is totally not the
case. add-library calls dlopen() and load-library just looks the opened
library up in the ``libraries`` global. What load-library did is now
library-dll.

If we want to do it right, add-library should be a declarative top-level
form that tries to call a real load-library on demand instead of
memoizing the first try which would fix the case where the library is
not found, is moved into position by the user and Factor declines to
look it up again.
basis/alien/libraries/libraries-docs.factor
basis/alien/libraries/libraries.factor
basis/compiler/tests/alien.factor
basis/compiler/tests/linkage-errors.factor
extra/readline/readline.factor