Fix typo: "loop though" -> "loop through"
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4b6ccd8bbd
commit
029c7b4e6d
2 changed files with 2 additions and 2 deletions
|
|
@ -3022,7 +3022,7 @@ The basic problem we need to solve is verifying and building arguments passed to
|
||||||
So going back to the <tt>SWIG_ConvertPtr()</tt> function example from above, we are
|
So going back to the <tt>SWIG_ConvertPtr()</tt> function example from above, we are
|
||||||
expecting a <tt>Foo *</tt> and need to
|
expecting a <tt>Foo *</tt> and need to
|
||||||
check if <tt>obj0</tt> is in fact a <tt>Foo *</tt>. From before, <tt>SWIGTYPE_p_Foo</tt> is just
|
check if <tt>obj0</tt> is in fact a <tt>Foo *</tt>. From before, <tt>SWIGTYPE_p_Foo</tt> is just
|
||||||
a pointer to the <tt>swig_type_info</tt> structure describing <tt>Foo *</tt>. So we loop though the
|
a pointer to the <tt>swig_type_info</tt> structure describing <tt>Foo *</tt>. So we loop through the
|
||||||
linked list of <tt>swig_cast_info</tt> structures attached to <tt>SWIGTYPE_p_Foo</tt>. If we see that the type of <tt>obj0</tt> is in the
|
linked list of <tt>swig_cast_info</tt> structures attached to <tt>SWIGTYPE_p_Foo</tt>. If we see that the type of <tt>obj0</tt> is in the
|
||||||
linked list, we pass the object through the associated conversion function and
|
linked list, we pass the object through the associated conversion function and
|
||||||
then return a positive. If we reach the end of the linked list without a match,
|
then return a positive. If we reach the end of the linked list without a match,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
* structures together.
|
* structures together.
|
||||||
*
|
*
|
||||||
* The generated swig_type_info structures are assigned staticly to an initial
|
* The generated swig_type_info structures are assigned staticly to an initial
|
||||||
* array. We just loop though that array, and handle each type individually.
|
* array. We just loop through that array, and handle each type individually.
|
||||||
* First we lookup if this type has been already loaded, and if so, use the
|
* First we lookup if this type has been already loaded, and if so, use the
|
||||||
* loaded structure instead of the generated one. Then we have to fill in the
|
* loaded structure instead of the generated one. Then we have to fill in the
|
||||||
* cast linked list. The cast data is initially stored in something like a
|
* cast linked list. The cast data is initially stored in something like a
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue