]> git.sesse.net Git - vlc/commitdiff
Don't redefine MODULE_STRING
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 8 May 2008 16:26:30 +0000 (19:26 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 8 May 2008 16:26:30 +0000 (19:26 +0300)
include/vlc_plugin.h

index 635f2b486f8dde48dc5a8574b5d71df4c4c08293..6b6ccae55254eeb7112d8a2a3987a947704ae787 100644 (file)
 
 /* Explanation:
  *
- * if user has #defined MODULE_NAME foo, then we will need:
- * #define MODULE_STRING "foo"
- *
- * and, if HAVE_DYNAMIC_PLUGINS is NOT set, we will also need:
+ * if HAVE_DYNAMIC_PLUGINS is NOT set, we will need:
  * #define MODULE_FUNC( zog ) module_foo_zog
  *
  * this can't easily be done with the C preprocessor, thus a few ugly hacks.
  */
 
-/* I can't believe I need to do this to change « foo » to « "foo" » */
-#define STRINGIFY( z )   UGLY_KLUDGE( z )
-#define UGLY_KLUDGE( z ) #z
-/* And I need to do _this_ to change « foo bar » to « module_foo_bar » ! */
+/* I need to do _this_ to change « foo bar » to « module_foo_bar » ! */
 #define CONCATENATE( y, z ) CRUDE_HACK( y, z )
 #define CRUDE_HACK( y, z )  y##__##z
 
@@ -86,8 +80,6 @@
 #   define EXTERN_SYMBOL
 #endif
 
-#define MODULE_STRING STRINGIFY( MODULE_NAME )
-
 /*
  * InitModule: this function is called once and only once, when the module
  * is looked at for the first time. We get the useful data from it, for