[PATCH] Make kconfig_compiler work correctly with parametrized entries.

Reinhold Kainhofer reinhold at kainhofer.com
Mon Jun 7 17:41:48 BST 2004

Zitiere Waldo Bastian <bastian at kde.org>: 
> You say: 
> "Make mutators for enum parameters work by adding them with $(..) 
> replaced by the param index (int), instead of being replaced by  
> the actual param name. 
> The check for isImmutable in the set* functions doesn't have the param 
> name available, just the corresponding enum value (int)." 
> Which is indeed a smart way to solve this problem, but I'm afraid it 
> breaks backwards compatibility.  
> So I guess the solution is to do it the hard way and define something 
> like: 
> const *char const buttonEnumToString[] = { "left", "mid", "right" }; 
Okay, implemented. A new patch is attached which implements your suggestions 
and updates the reference files to the new code.  
Any further objections? 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Kconfig_Compiler_ParametrizedEntries_2004-06-07.patch
Type: text/x-diff
Size: 16805 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040607/40e4103d/attachment.patch>

More information about the kde-core-devel mailing list