Documentation patches from Mark Goodman
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7154 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
31c19ff7b7
commit
ca7834309c
7 changed files with 27 additions and 25 deletions
|
|
@ -425,13 +425,13 @@ interface is as follows:
|
|||
<div class="code">
|
||||
<pre>
|
||||
struct name {
|
||||
name(int nelements); // Create an array
|
||||
~name(); // Delete array
|
||||
type getitem(int index); // Return item
|
||||
void setitem(index, type value); // Set item
|
||||
type *cast(); // Cast to original type
|
||||
static name *frompointer(type *); // Create class wrapper from
|
||||
// existing pointer
|
||||
name(int nelements); // Create an array
|
||||
~name(); // Delete array
|
||||
type getitem(int index); // Return item
|
||||
void setitem(int index, type value); // Set item
|
||||
type *cast(); // Cast to original type
|
||||
static name *frompointer(type *); // Create class wrapper from
|
||||
// existing pointer
|
||||
};
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -731,7 +731,7 @@ Generates the following function for extracting C data for a given type.
|
|||
|
||||
<div class="code">
|
||||
<pre>
|
||||
char *cdata_<em>name</em>(int nitems)
|
||||
char *cdata_<em>name</em>(type* ptr, int nitems)
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue