add more predicates for rename
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8463 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
66730ef7e2
commit
0b2d6ed0ce
2 changed files with 8 additions and 1 deletions
|
|
@ -12,12 +12,13 @@
|
||||||
%rename("%(camelcase)s", %isclass) "";
|
%rename("%(camelcase)s", %isclass) "";
|
||||||
|
|
||||||
/* Constants are UPPER_CASE */
|
/* Constants are UPPER_CASE */
|
||||||
|
%rename("%(uppercase)s", %isvariable,%isimmutable) "";
|
||||||
%rename("%(uppercase)s", %isvariable,%isstatic,%hasvalue,%hasconsttype) "";
|
%rename("%(uppercase)s", %isvariable,%isstatic,%hasvalue,%hasconsttype) "";
|
||||||
%rename("%(uppercase)s", %isconstant) "";
|
%rename("%(uppercase)s", %isconstant) "";
|
||||||
|
|
||||||
/* Method names should be changed so that they are
|
/* Method names should be changed so that they are
|
||||||
lower_case_with_underscores */
|
lower_case_with_underscores */
|
||||||
%rename("%(undercase)s", %isfunction, %ismember) "";
|
%rename("%(undercase)s", %isfunction, %ismember, %isnotmemberget, %isnotmemberset) "";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ------------------------------------------------------------
|
/* ------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -265,6 +265,12 @@ static int NAME(TYPE x) {
|
||||||
%define %isprotected match$access="protected" %enddef
|
%define %isprotected match$access="protected" %enddef
|
||||||
%define %isprivate match$access="public" %enddef
|
%define %isprivate match$access="public" %enddef
|
||||||
|
|
||||||
|
|
||||||
|
%define %ismemberget match$memberget="1" %enddef
|
||||||
|
%define %ismemberset match$memberset="1" %enddef
|
||||||
|
%define %isnotmemberget notmatch$memberget="1" %enddef
|
||||||
|
%define %isnotmemberset notmatch$memberset="1" %enddef
|
||||||
|
|
||||||
%define %classname %ismember,match$parentNode$name %enddef
|
%define %classname %ismember,match$parentNode$name %enddef
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue