]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/grob-interface.hh
Run grand-replace (issue 3765)
[lilypond.git] / lily / include / grob-interface.hh
index f6a92c0afed034a5859c8ff2a54d38d03e7c5746..2062393f0b74910fe944c726a2b08625f8561499 100644 (file)
@@ -1,9 +1,20 @@
 /*
-  interface.hh -- declare Interface
+  This file is part of LilyPond, the GNU music typesetter.
 
-  source file of the GNU LilyPond music typesetter
+  Copyright (C) 2002--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
-  (c) 2002--2006 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 INTERFACE_HH
 #include "lily-guile.hh"
 
 #define DECLARE_GROB_INTERFACE() \
-  static SCM interface_symbol_;           \
+  static SCM interface_symbol_;    \
   static bool has_interface (Grob*)
 
-#define ADD_INTERFACE(cl, b, c)                                \
+#define ADD_INTERFACE(cl, b, c)                         \
   SCM cl::interface_symbol_; \
-  bool cl::has_interface (Grob *me)                            \
-  {                                                            \
-    return me->internal_has_interface (interface_symbol_);     \
-  }                                                            \
-  void cl ## _init_ifaces ()                                   \
-  {                                                            \
-    cl::interface_symbol_ = add_interface (#cl, b, c);         \
-  }                                                            \
+  bool cl::has_interface (Grob *me)                             \
+  {                                                             \
+    return me->internal_has_interface (interface_symbol_);      \
+  }                                                             \
+  void cl ## _init_ifaces ()                                    \
+  {                                                             \
+    cl::interface_symbol_ = add_interface (#cl, b, c);          \
+  }                                                             \
   ADD_SCM_INIT_FUNC (cl ## ifaces, cl ## _init_ifaces);
 
 SCM add_interface (char const *cxx_name,
-                   char const *descr,
-                   char const *vars);
+                   char const *descr,
+                   char const *vars);
 
 SCM ly_add_interface (SCM, SCM, SCM);
+void internal_add_interface (SCM, SCM, SCM);
 SCM ly_all_grob_interfaces ();
 
 #endif /* INTERFACE_HH */