Changed rename rules to include functions and change Enums to only capitalize the first letter.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8474 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4bda2fffd6
commit
e5a3bdad7d
1 changed files with 4 additions and 3 deletions
|
|
@ -19,11 +19,12 @@
|
||||||
a constant by SWIG see naming.i in the Ruby test suite. */
|
a constant by SWIG see naming.i in the Ruby test suite. */
|
||||||
%rename("%(uppercase)s", %$ismember, %$isvariable,%$isimmutable,%$isstatic,%$hasvalue,%$hasconsttype) "";
|
%rename("%(uppercase)s", %$ismember, %$isvariable,%$isimmutable,%$isstatic,%$hasvalue,%$hasconsttype) "";
|
||||||
|
|
||||||
/* Enums are mapped to constants and thus should be UPPER_CASE */
|
/* Enums are mapped to constants but we all we do is make sure the
|
||||||
%rename("%(uppercase)s", %$isenumitem) "";
|
first letter is uppercase */
|
||||||
|
%rename("%(firstuppercase)s", %$isenumitem) "";
|
||||||
|
|
||||||
/* Method names should be lower_case_with_underscores */
|
/* Method names should be lower_case_with_underscores */
|
||||||
%rename("%(undercase)s", %$isfunction, %$ismember, %$not %$ismemberget, %$not %$ismemberset) "";
|
%rename("%(undercase)s", %$isfunction, %$not %$ismemberget, %$not %$ismemberset) "";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ------------------------------------------------------------
|
/* ------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue