change the %rename predicates to use the prefix %$ and avoid clashings with other rename directives

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8469 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-16 23:27:11 +00:00
commit 526be12c1e
3 changed files with 47 additions and 45 deletions

View file

@ -9,21 +9,21 @@
* ------------------------------------------------------------ */
#if defined(SWIG_RUBY_AUTORENAME)
/* Class names are CamelCase */
%rename("%(camelcase)s", %isclass) "";
%rename("%(camelcase)s", %$isclass) "";
/* Constants created by %constant or #define are UPPER_CASE */
%rename("%(uppercase)s", %isconstant) "";
%rename("%(uppercase)s", %$isconstant) "";
/* SWIG only considers static class members with inline intializers
to be constants. For examples of what is and isn't considered
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 */
%rename("%(uppercase)s", %isenumitem) "";
%rename("%(uppercase)s", %$isenumitem) "";
/* Method names should be lower_case_with_underscores */
%rename("%(undercase)s", %isfunction, %ismember, %not %ismemberget, %not %ismemberset) "";
%rename("%(undercase)s", %$isfunction, %$ismember, %$not %$ismemberget, %$not %$ismemberset) "";
#endif
/* ------------------------------------------------------------