X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fsimple-closure.hh;h=8903bba1facf9497e8e0b2b034c5179626b8452e;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=2d4f83525ff8e2ad51917e9488d9e1fee1705389;hpb=8cab78caa0db1ba14f2e52e4c1ddbb541ea0e5cb;p=lilypond.git diff --git a/lily/include/simple-closure.hh b/lily/include/simple-closure.hh index 2d4f83525f..8903bba1fa 100644 --- a/lily/include/simple-closure.hh +++ b/lily/include/simple-closure.hh @@ -1,20 +1,36 @@ /* - simple-closure.hh -- declare simple closures + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 2005--2015 Han-Wen Nienhuys - (c) 2005--2009 Han-Wen Nienhuys + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #ifndef SIMPLE_CLOSURE_HH #define SIMPLE_CLOSURE_HH #include "lily-guile.hh" +#include "small-smobs.hh" + +class Simple_closure : public Smob1 +{ +public: + SCM expression() const { return scm1 (); } + int print_smob (SCM, scm_print_state *); + static const char type_p_name_[]; +}; -bool is_simple_closure (SCM s); -SCM simple_closure_expression (SCM smob); SCM evaluate_with_simple_closure (SCM delayed_argument, SCM expr, bool pure, int start, int end); -SCM ly_make_simple_closure (SCM); #endif /* SIMPLE_CLOSURE_HH */