mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-02 05:29:20 -06:00
dlopen() modules from C, instead of from guile
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12874 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
40a341c49d
commit
18a90eaf39
@ -127,9 +127,26 @@ inner_main (void *closure, int argc, char **argv)
|
||||
main_mod = scm_c_resolve_module("gnucash main");
|
||||
scm_set_current_module(main_mod);
|
||||
|
||||
/* module initializations would go here */
|
||||
/* module initializations go here */
|
||||
gnc_module_load("gnucash/app-utils", 0);
|
||||
gnc_module_load("gnucash/gw-engine", 0);
|
||||
gnc_module_load("gnucash/engine", 0);
|
||||
gnc_module_load("gnucash/register/ledger-core", 0);
|
||||
gnc_module_load("gnucash/register/register-core", 0);
|
||||
gnc_module_load("gnucash/register/register-gnome", 0);
|
||||
gnc_module_load("gnucash/import-export/binary-import", 0);
|
||||
gnc_module_load("gnucash/import-export/qif-import", 0);
|
||||
gnc_module_load_optional("gnucash/import-export/ofx", 0);
|
||||
gnc_module_load_optional("gnucash/import-export/mt940", 0);
|
||||
gnc_module_load_optional("gnucash/import-export/log-replay", 0);
|
||||
gnc_module_load_optional("gnucash/import-export/hbci", 0);
|
||||
gnc_module_load("gnucash/report/report-system", 0);
|
||||
gnc_module_load("gnucash/report/stylesheets", 0);
|
||||
gnc_module_load("gnucash/report/standard-reports", 0);
|
||||
gnc_module_load("gnucash/report/utility-reports", 0);
|
||||
gnc_module_load("gnucash/report/locale-specific/us", 0);
|
||||
gnc_module_load("gnucash/report/report-gnome", 0);
|
||||
gnc_module_load_optional("gnucash/business-gnome", 0);
|
||||
|
||||
scm_c_eval_string("(gnc:main)");
|
||||
return;
|
||||
|
@ -390,27 +390,6 @@ string and 'directories' must be a list of strings."
|
||||
(gnc:module-load name vers))))
|
||||
|
||||
(set-current-module bootstrap)
|
||||
|
||||
;; right now we have to statically load all these at startup time.
|
||||
;; Hopefully we can gradually make them autoloading.
|
||||
(load-module "gnucash/engine" 0 #f)
|
||||
|
||||
(load-module "gnucash/register/ledger-core" 0 #f)
|
||||
(load-module "gnucash/register/register-core" 0 #f)
|
||||
(load-module "gnucash/register/register-gnome" 0 #f)
|
||||
(load-module "gnucash/import-export/binary-import" 0 #f)
|
||||
(load-module "gnucash/import-export/qif-import" 0 #f)
|
||||
(load-module "gnucash/import-export/ofx" 0 #t)
|
||||
(load-module "gnucash/import-export/mt940" 0 #t)
|
||||
(load-module "gnucash/import-export/log-replay" 0 #t)
|
||||
(load-module "gnucash/import-export/hbci" 0 #t)
|
||||
(load-module "gnucash/report/report-system" 0 #f)
|
||||
(load-module "gnucash/report/stylesheets" 0 #f)
|
||||
(load-module "gnucash/report/standard-reports" 0 #f)
|
||||
(load-module "gnucash/report/utility-reports" 0 #f)
|
||||
(load-module "gnucash/report/locale-specific/us" 0 #f)
|
||||
(load-module "gnucash/report/report-gnome" 0 #f)
|
||||
(load-module "gnucash/business-gnome" 0 #t)
|
||||
|
||||
;; files we should be able to load from the top-level because
|
||||
;; they're "well behaved" (these should probably be in modules
|
||||
|
Loading…
Reference in New Issue
Block a user