From: Marcelo M. <mar...@us...> - 2006-01-16 23:27:20
|
Update of /cvsroot/swig/SWIG/Lib/ruby In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13589/Lib/ruby Modified Files: ruby.swg Log Message: change the %rename predicates to use the prefix %$ and avoid clashings with other rename directives Index: ruby.swg =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/ruby/ruby.swg,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** ruby.swg 16 Jan 2006 10:46:08 -0000 1.46 --- ruby.swg 16 Jan 2006 23:27:11 -0000 1.47 *************** *** 10,28 **** #if defined(SWIG_RUBY_AUTORENAME) /* Class names are CamelCase */ ! %rename("%(camelcase)s", %isclass) ""; /* Constants created by %constant or #define are UPPER_CASE */ ! %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) ""; /* Enums are mapped to constants and thus should be UPPER_CASE */ ! %rename("%(uppercase)s", %isenumitem) ""; /* Method names should be lower_case_with_underscores */ ! %rename("%(undercase)s", %isfunction, %ismember, %not %ismemberget, %not %ismemberset) ""; #endif --- 10,28 ---- #if defined(SWIG_RUBY_AUTORENAME) /* Class names are CamelCase */ ! %rename("%(camelcase)s", %$isclass) ""; /* Constants created by %constant or #define are UPPER_CASE */ ! %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) ""; /* Enums are mapped to constants and thus should be UPPER_CASE */ ! %rename("%(uppercase)s", %$isenumitem) ""; /* Method names should be lower_case_with_underscores */ ! %rename("%(undercase)s", %$isfunction, %$ismember, %$not %$ismemberget, %$not %$ismemberset) ""; #endif |