Start pictograms branch.
[lilypond/mpolesky.git] / lily / include / ly-module.hh
blob89fbbefa806e7f0684598b28330b83720432cfae
1 /*
2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 2002--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
6 LilyPond is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef LY_MODULE_HH
20 #define LY_MODULE_HH
22 #include "config.hh"
23 #include "lily-guile.hh"
25 SCM ly_make_module (bool safe);
26 SCM ly_module_copy (SCM dest, SCM src);
27 SCM ly_module_2_alist (SCM mod);
28 SCM ly_module_lookup (SCM module, SCM sym);
29 SCM ly_modules_lookup (SCM modules, SCM sym, SCM);
30 SCM ly_module_symbols (SCM mod);
31 void ly_reexport_module (SCM mod);
32 inline bool ly_is_module (SCM x) { return SCM_MODULEP (x); }
34 SCM ly_use_module (SCM mod, SCM used);
36 /* For backward compatability with Guile 1.8 */
37 #if !HAVE_GUILE_HASH_FUNC
38 typedef SCM (*scm_t_hash_fold_fn) (GUILE_ELLIPSIS);
39 typedef SCM (*scm_t_hash_handle_fn) (GUILE_ELLIPSIS);
40 #endif
43 #endif /* LY_MODULE_HH */