Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
6433e0e9
Commit
6433e0e9
authored
May 08, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't redefine MODULE_STRING
parent
0669643b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
include/vlc_plugin.h
include/vlc_plugin.h
+2
-10
No files found.
include/vlc_plugin.h
View file @
6433e0e9
...
@@ -43,19 +43,13 @@
...
@@ -43,19 +43,13 @@
/* Explanation:
/* Explanation:
*
*
* if user has #defined MODULE_NAME foo, then we will need:
* if HAVE_DYNAMIC_PLUGINS is NOT set, we will need:
* #define MODULE_STRING "foo"
*
* and, if HAVE_DYNAMIC_PLUGINS is NOT set, we will also need:
* #define MODULE_FUNC( zog ) module_foo_zog
* #define MODULE_FUNC( zog ) module_foo_zog
*
*
* this can't easily be done with the C preprocessor, thus a few ugly hacks.
* 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" » */
/* I need to do _this_ to change « foo bar » to « module_foo_bar » ! */
#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 » ! */
#define CONCATENATE( y, z ) CRUDE_HACK( y, z )
#define CONCATENATE( y, z ) CRUDE_HACK( y, z )
#define CRUDE_HACK( y, z ) y##__##z
#define CRUDE_HACK( y, z ) y##__##z
...
@@ -86,8 +80,6 @@
...
@@ -86,8 +80,6 @@
# define EXTERN_SYMBOL
# define EXTERN_SYMBOL
#endif
#endif
#define MODULE_STRING STRINGIFY( MODULE_NAME )
/*
/*
* InitModule: this function is called once and only once, when the module
* 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
* is looked at for the first time. We get the useful data from it, for
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment