Removed decr-- Hash tables feature.

Added some comments.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11569 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Matevz Jekovec 2009-08-14 16:15:36 +00:00
commit 52149e219d
5 changed files with 22 additions and 0 deletions

View file

@ -226,6 +226,9 @@ namespace swig {
SwigPyIterator *decr(size_t n = 1)
{
while (n--) {
--base::current;
}
return this;
}
};
@ -274,6 +277,13 @@ namespace swig {
SwigPyIterator *decr(size_t n = 1)
{
while (n--) {
if (base::current == begin) {
throw stop_iteration();
} else {
--base::current;
}
}
return this;
}