r12816 - gnucash/trunk/src - Pull the C inner_main into the
environment of the guile (gnucash main) module.
Chris Shoemaker
chris at cvs.gnucash.org
Mon Jan 16 21:26:19 EST 2006
Author: chris
Date: 2006-01-16 21:26:16 -0500 (Mon, 16 Jan 2006)
New Revision: 12816
Trac: http://svn.gnucash.org/trac/changeset/12816
Modified:
gnucash/trunk/src/bin/gnucash-bin.c
gnucash/trunk/src/scm/main.scm
Log:
Pull the C inner_main into the environment of the guile (gnucash main) module.
Strangely, symbols that are resolved during a dlopen() *before* calling
scm_set_current_module() are not resolvable from guile code that is inside
a module.
In order for code in a guile module to see symbols from dlopen'ed libraries,
they must be dlopen'ed *while* that guile module is current. I imagine this
is because the process of changing the current guile module purposely hides
all symbols in the current symbol table - to create an illusion of an empty
table. Kinda interesting... kinda scary...
More information about the gnucash-patches
mailing list