]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/ly-module.hh
Run grand-replace (issue 3765)
[lilypond.git] / lily / include / ly-module.hh
1 /*
2   This file is part of LilyPond, the GNU music typesetter.
3
4   Copyright (C) 2002--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
5
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.
10
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.
15
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/>.
18 */
19 #ifndef LY_MODULE_HH
20 #define LY_MODULE_HH
21
22 #include "config.hh"
23 #include "lily-guile.hh"
24
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); }
33
34 SCM ly_use_module (SCM mod, SCM used);
35
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
41
42 #endif /* LY_MODULE_HH */
43