]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/global-ctor.hh
Run `make grand-replace'.
[lilypond.git] / lily / include / global-ctor.hh
index de31fc8dc9586ac5406d494caedfff47391bf668..d15f28e93444ecdedad82a5b0d7c30f118d40c61 100644 (file)
@@ -1,30 +1,28 @@
-/*   
+/*
   global-ctor.hh -- declare Global construction stuff.
-  
+
   source file of the GNU LilyPond music typesetter
-  
-  (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-  
- */
+
+  (c) 1999--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
+*/
 
 #ifndef GLOBAL_CTOR_HH
 #define GLOBAL_CTOR_HH
 
+#define ADD_GLOBAL_CTOR_WITHNAME(y, x)         \
+  class Global_ctor_ ## y                      \
+  {                                            \
+  public:                                      \
+    Global_ctor_ ## y ()                       \
+      {                                                \
+       add_constructor (x);                    \
+      }                                                \
+  }                                            \
+    _ ## y ## _ctor_init;
 
-#define ADD_GLOBAL_CTOR_WITHNAME(y,x)\
-class Global_ctor_ ## y  \
-{\
-public:        \
-  Global_ctor_ ## y () {               \
-    add_constructor (x);       \
-  }                            \
-}  _ ## y ## _ctor_init;       \
-
-
-#define ADD_GLOBAL_CTOR(x) ADD_GLOBAL_CTOR_WITHNAME (x,x);
-
+#define ADD_GLOBAL_CTOR(x) ADD_GLOBAL_CTOR_WITHNAME (x, x);
 
-typedef void (* Global_ctor ) ();
+typedef void (* Global_ctor) ();
 void add_constructor (Global_ctor ctor);
 void call_constructors ();