]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/music-constructor.hh
* flower
[lilypond.git] / lily / include / music-constructor.hh
index b646b2b6bb10375b0440d10ed3f4616f2535ea14..efeb4332327e4863e2612232b9e248f01a86b18f 100644 (file)
@@ -1,11 +1,10 @@
-/*   
+/*
   music-constructor.hh -- declare Music_constructor
-  
+
   source file of the GNU LilyPond music typesetter
-  
+
   (c) 2001--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-  
- */
+*/
 
 #ifndef MUSIC_CONSTRUCTOR_HH
 #define MUSIC_CONSTRUCTOR_HH
 #include "string.hh"
 #include "global-ctor.hh"
 
-#define ADD_MUSIC(type) \
-Music * _ ## type ## _ctor (SCM init)\
-{\
-  return new type (init);\
-}\
-static void  _ ## type ## _adder () {\
-      add_music_ctor (#type, & _ ## type ## _ctor);\
-}\
-ADD_SCM_INIT_FUNC( _ ## type ## _adder_prefix,  _ ## type ## _adder);
+#define ADD_MUSIC(type)                                                        \
+  Music *_ ## type ## _ctor (SCM init)                                 \
+  {                                                                    \
+    return new type (init);                                            \
+  }                                                                    \
+  static void _ ## type ## _adder ()                                   \
+  {                                                                    \
+    add_music_ctor (#type, & _ ## type ## _ctor);                      \
+  }                                                                    \
+  ADD_SCM_INIT_FUNC (_ ## type ## _adder_prefix, _ ## type ## _adder);
 
 typedef Music *(*Music_ctor) (SCM);
 void add_music_ctor (String, Music_ctor);
-Music*make_music (String, SCM);
-
-
-
+Music *make_music (String, SCM);
 
 
 #endif /* MUSIC_CONSTRUCTOR_HH */