kconfig: Get rid of the P() macro in headers
authorMichal Marek <mmarek@suse.cz>
Tue, 27 Jan 2015 16:11:42 +0000 (17:11 +0100)
committerMichal Marek <mmarek@suse.cz>
Wed, 25 Feb 2015 14:00:16 +0000 (15:00 +0100)
This was originally meant for dlopen()ing a potential kconfig shared
library. The unused dlopen code has already been removed in commit
5a6f8d2b (kconfig: nuke LKC_DIRECT_LINK cruft), so let's remove the
rest. The lkc_proto.h change was made with the following sed script:

  sed -r 's/^P\(([^,]*), *([^,]*), *(.*)\);/\2 \1\3;/'

Plus some manual adjustments.

Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/lkc.h
scripts/kconfig/lkc_proto.h

index d5daa7a..e418a30 100644 (file)
@@ -21,9 +21,7 @@ static inline char *bind_textdomain_codeset(const char *dn, char *c) { return c;
 extern "C" {
 #endif
 
-#define P(name,type,arg)       extern type name arg
 #include "lkc_proto.h"
-#undef P
 
 #define SRCTREE "srctree"
 
Simple merge