Improved algorithm of renaming of methods with numbers at the end.
Fixed some const issues. Improved report on overloaded function error. Fixed some minor iterator potential problems. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9770 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e90e28acfc
commit
4cd98d3865
13 changed files with 96 additions and 26 deletions
|
|
@ -615,14 +615,15 @@ namespace swig
|
|||
return r;
|
||||
}
|
||||
|
||||
|
||||
Sequence* each()
|
||||
{
|
||||
if ( !rb_block_given_p() )
|
||||
rb_raise( rb_eArgError, "no block given");
|
||||
|
||||
VALUE r;
|
||||
Sequence::iterator i = self->begin();
|
||||
Sequence::iterator e = self->end();
|
||||
Sequence::const_iterator i = self->begin();
|
||||
Sequence::const_iterator e = self->end();
|
||||
for ( ; i != e; ++i )
|
||||
{
|
||||
r = swig::from<Sequence::value_type>(*i);
|
||||
|
|
@ -650,7 +651,6 @@ namespace swig
|
|||
return r;
|
||||
}
|
||||
|
||||
|
||||
%rename("reject!") reject_bang;
|
||||
%alias reject_bang "delete_if";
|
||||
Sequence* reject_bang() {
|
||||
|
|
@ -971,7 +971,7 @@ namespace swig {
|
|||
typedef T value_type;
|
||||
|
||||
static int asptr(VALUE obj, sequence **seq) {
|
||||
if (rb_obj_is_kind_of(obj, rb_cArray)) {
|
||||
if (rb_obj_is_kind_of(obj, rb_cArray) == Qtrue) {
|
||||
try {
|
||||
RubySequence_Cont<value_type> rubyseq(obj);
|
||||
if (seq) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue