X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fsimple-closure.hh;h=f6a2cfdf58f1dc5875fb0f2b6b6277166a4d416d;hb=0adbc8b19405a3a383101abe7bc534e1e97ef441;hp=d5f507f4558faf690cf5d25f4d6a7b8affe517de;hpb=0387f04497978e37b335a8b99eec905499d6ad0f;p=lilypond.git diff --git a/lily/include/simple-closure.hh b/lily/include/simple-closure.hh index d5f507f455..f6a2cfdf58 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--2014 Han-Wen Nienhuys - (c) 2005--2008 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 */