]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/ly-module.hh
abb4b200405cee65221ea27a28fd949eb2139674
[lilypond.git] / lily / include / ly-module.hh
1 /*
2   ly-module.hh -- declare  module related helper functions
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2002--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8 #ifndef LY_MODULE_HH
9 #define LY_MODULE_HH
10
11 #include "lily-guile.hh"
12
13 SCM ly_make_anonymous_module (bool safe);
14 SCM ly_module_copy (SCM dest, SCM src);
15 SCM ly_module_2_alist (SCM mod);
16 SCM ly_module_lookup (SCM module, SCM sym);
17 SCM ly_modules_lookup (SCM modules, SCM sym, SCM);
18 SCM ly_module_symbols (SCM mod);
19 void ly_reexport_module (SCM mod);
20 inline bool ly_is_module (SCM x) { return SCM_MODULEP (x); }
21 SCM ly_clear_anonymous_modules ();
22 void clear_anonymous_modules ();
23 SCM ly_use_module (SCM mod, SCM used);
24
25 /* Ugh signature of scm_internal_hash_fold () is inaccurate.  */
26 typedef SCM (*Hash_closure_function) (GUILE_ELLIPSIS);
27
28 #define MODULE_GC_KLUDGE
29
30 #endif /* LY_MODULE_HH */
31