Run grand-replace for 2010.
[lilypond/mpolesky.git] / lily / include / ly-module.hh
blobe9ab0b85373c70f660f4d5037615c05cb2f71d5e
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 "lily-guile.hh"
24 SCM ly_make_anonymous_module (bool safe);
25 SCM ly_module_copy (SCM dest, SCM src);
26 SCM ly_module_2_alist (SCM mod);
27 SCM ly_module_lookup (SCM module, SCM sym);
28 SCM ly_modules_lookup (SCM modules, SCM sym, SCM);
29 SCM ly_module_symbols (SCM mod);
30 void ly_reexport_module (SCM mod);
31 inline bool ly_is_module (SCM x) { return SCM_MODULEP (x); }
32 SCM ly_clear_anonymous_modules ();
33 void clear_anonymous_modules ();
34 SCM ly_use_module (SCM mod, SCM used);
36 /* Ugh signature of scm_internal_hash_fold () is inaccurate. */
37 typedef SCM (*Hash_closure_function) (GUILE_ELLIPSIS);
39 #define MODULE_GC_KLUDGE
41 #endif /* LY_MODULE_HH */