]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/simple-closure.hh
Run grand replace for 2015.
[lilypond.git] / lily / include / simple-closure.hh
index 2d4f83525ff8e2ad51917e9488d9e1fee1705389..8903bba1facf9497e8e0b2b034c5179626b8452e 100644 (file)
@@ -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 <hanwen@xs4all.nl>
 
-  (c) 2005--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  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 <http://www.gnu.org/licenses/>.
 */
 
 #ifndef SIMPLE_CLOSURE_HH
 #define SIMPLE_CLOSURE_HH
 
 #include "lily-guile.hh"
+#include "small-smobs.hh"
+
+class Simple_closure : public Smob1<Simple_closure>
+{
+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 */