~ubuntu-branches/ubuntu/oneiric/swig1.3/oneiric

« back to all changes in this revision

Viewing changes to Doc/Manual/SWIG.html

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-12-06 10:27:08 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071206102708-t37t62i45n595w0e
Tags: 1.3.33-2ubuntu1
* Merge with Debian; remaining changes:
  - Drop support for pike.
  - Use python2.5 instead of python2.4.
  - Clean Runtime/ as well.
  - Force a few environment variables.
* debian/Rules (clean): Remove Lib/ocaml/swigp4.ml.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
<li><a href="#SWIG_nn25">Linking to <tt>char *</tt></a>
44
44
<li><a href="#SWIG_nn26">Arrays</a>
45
45
<li><a href="#SWIG_readonly_variables">Creating read-only variables</a>
46
 
<li><a href="#SWIG_nn28">Renaming and ignoring declarations</a>
 
46
<li><a href="#SWIG_rename_ignore">Renaming and ignoring declarations</a>
47
47
<li><a href="#SWIG_default_args">Default/optional arguments</a>
48
48
<li><a href="#SWIG_nn30">Pointers to functions and callbacks</a>
49
49
</ul>
120
120
-mzscheme             Generate Mzscheme wrappers
121
121
-ocaml                Generate Ocaml wrappers
122
122
-perl                 Generate Perl wrappers
123
 
-php                  Generate PHP wrappers
 
123
-php4                 Generate PHP4 wrappers
 
124
-php5                 Generate PHP5 wrappers
124
125
-pike                 Generate Pike wrappers
125
126
-python               Generate Python wrappers
 
127
-r                    Generate R (aka GNU S) wrappers
126
128
-ruby                 Generate Ruby wrappers
127
129
-sexp                 Generate Lisp S-Expressions wrappers
128
130
-tcl                  Generate Tcl wrappers
1626
1628
<tt>%mutable;</tt> to silence the warning.  Don't forget the extra semicolon!
1627
1629
</p>
1628
1630
 
1629
 
<H3><a name="SWIG_nn28"></a>5.4.7 Renaming and ignoring declarations</H3>
 
1631
<H3><a name="SWIG_rename_ignore"></a>5.4.7 Renaming and ignoring declarations</H3>
1630
1632
 
1631
1633
 
1632
1634
<p>
1856
1858
int binary_op(int a, int b, int (*op)(int,int));
1857
1859
 
1858
1860
/* Some callback functions */
1859
 
%callback("%s_cb")
 
1861
%callback("%s_cb");
1860
1862
int add(int,int);
1861
1863
int sub(int,int);
1862
1864
int mul(int,int);
1863
 
%nocallback
 
1865
%nocallback;
1864
1866
</pre></div>
1865
1867
 
1866
1868
<p>
1898
1900
 
1899
1901
<div class="code"><pre>
1900
1902
/* Some callback functions */
1901
 
%callback("%(upper)s")
 
1903
%callback("%(upper)s");
1902
1904
int add(int,int);
1903
1905
int sub(int,int);
1904
1906
int mul(int,int);
1905
 
%nocallback
 
1907
%nocallback;
1906
1908
</pre></div>
1907
1909
 
1908
1910
<p>