minor corrections
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6561 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d550c073ee
commit
33f768f33d
2 changed files with 11 additions and 7 deletions
|
|
@ -323,6 +323,7 @@
|
|||
<li><a href="Typemaps.html#Typemaps_nn17">Basic matching rules</a>
|
||||
<li><a href="Typemaps.html#Typemaps_nn18">Typedef reductions</a>
|
||||
<li><a href="Typemaps.html#Typemaps_nn19">Default typemaps</a>
|
||||
<li><a href="Typemaps.html#Typemaps_mixed_default">Mixed default typemaps</a>
|
||||
<li><a href="Typemaps.html#Typemaps_nn20">Multi-arguments typemaps</a>
|
||||
</ul>
|
||||
<li><a href="Typemaps.html#Typemaps_nn21">Code generation rules</a>
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
<li><a href="#Typemaps_nn17">Basic matching rules</a>
|
||||
<li><a href="#Typemaps_nn18">Typedef reductions</a>
|
||||
<li><a href="#Typemaps_nn19">Default typemaps</a>
|
||||
<li><a href="#Typemaps_mixed_default">Mixed default typemaps</a>
|
||||
<li><a href="#Typemaps_nn20">Multi-arguments typemaps</a>
|
||||
</ul>
|
||||
<li><a href="#Typemaps_nn21">Code generation rules</a>
|
||||
|
|
@ -1180,18 +1181,20 @@ definitions are usually found in the SWIG library in a file such as
|
|||
<tt>python.swg</tt>, <tt>tcl8.swg</tt>, etc.
|
||||
</p>
|
||||
|
||||
<H3>Mixed default typemaps</H3>
|
||||
<H3><a name="Typemaps_mixed_default"></a>10.3.4 Mixed default typemaps</H3>
|
||||
|
||||
|
||||
The default typemaps described above can be mixed with <tt>const</tt> and with each other.
|
||||
For example the <tt>SWIGTYPE *</tt> typemap is for default pointer handling, but if a <tt>const SWIGTYPE *</tt> typemap
|
||||
is defined it will be used instead for constant pointers. Some further examples follow:
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
%typemap(in) enum SWIGTYPE & { ... enum references ... }
|
||||
%typemap(in) const enum SWIGTYPE & { ... const enum references ... }
|
||||
%typemap(in) SWIGTYPE *& { ... pointers passed by reference ... }
|
||||
%typemap(in) SWIGTYPE * const & { ... constant pointers passed by reference ... }
|
||||
%typemap(in) SWIGTYPE[ANY][ANY] { ... 2D arrays ... }
|
||||
%typemap(in) enum SWIGTYPE & { ... enum references ... }
|
||||
%typemap(in) const enum SWIGTYPE & { ... const enum references ... }
|
||||
%typemap(in) SWIGTYPE *& { ... pointers passed by reference ... }
|
||||
%typemap(in) SWIGTYPE * const & { ... constant pointers passed by reference ... }
|
||||
%typemap(in) SWIGTYPE[ANY][ANY] { ... 2D arrays ... }
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
|
|
@ -1225,7 +1228,7 @@ Expect to see them being used more and more within the various libraries in late
|
|||
</p>
|
||||
|
||||
|
||||
<H3><a name="Typemaps_nn20"></a>10.3.4 Multi-arguments typemaps</H3>
|
||||
<H3><a name="Typemaps_nn20"></a>10.3.5 Multi-arguments typemaps</H3>
|
||||
|
||||
|
||||
<p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue