summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2015-02-05 10:15:37 -0800
committerIan Lance Taylor <iant@golang.org>2015-02-05 10:15:37 -0800
commit0a021a938efaae7340e601055d2bdc9b1c3e2087 (patch)
tree1a4463d13be5aab56b48856bd58057e1a407cc95 /Doc
parent603e3b49b3f7d0a92e60fcbdbed9a6f87a8a2187 (diff)
downloadswig-0a021a938efaae7340e601055d2bdc9b1c3e2087.tar.gz
[Go] Remove all generated calls to _swig_makegostring, as it will no
longer as of Go 1.5. In Go 1.5 or later user calls to _swig_makegostring will fail at link time. Instead, use goout and godirectorin typemaps to allocate strings in Go code. Change the Go typemaps support to ignore empty strings, so that we can define empty strings for regular types so that %apply will override the definitions for string types. Fix the gccgo code to wrap SwigCgoCallback around all godirectorin typemaps. Add a few newlines after typemap code so that the typemaps don't have to include them.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Manual/Go.html14
1 files changed, 9 insertions, 5 deletions
diff --git a/Doc/Manual/Go.html b/Doc/Manual/Go.html
index 9a6de9598..895e6c581 100644
--- a/Doc/Manual/Go.html
+++ b/Doc/Manual/Go.html
@@ -795,7 +795,8 @@ gotype is best converted to C/C++ using Go code.
<td>
Go code to convert from gotype to imtype when calling a C/C++
function. SWIG will then internally convert imtype to a C/C++ type
-and pass it down. If this is not defined no conversion is done.
+and pass it down. If this is not defined, or is the empty string, no
+conversion is done.
</td>
</tr>
@@ -822,7 +823,8 @@ to the desired type.
<td>goout</td>
<td>
Go code to convert a value returned from a C/C++ function from imtype
-to gotype. If this is not defined no conversion is done.
+to gotype. If this is not defined, or is the empty string, no
+conversion is done.
</td>
</tr>
@@ -843,7 +845,7 @@ be done.
Go code to adjust an argument value when returning from a function.
This is called after the real C/C++ function has run. The value will
be in imtype. This is only useful for a pointer type of some sort.
-If this is not defined nothing will be done.
+If this is not defined, or is the empty string, nothing will be done.
</td>
</tr>
@@ -861,7 +863,8 @@ to the desired type.
<td>godirectorin</td>
<td>
Go code to convert a value used to call a director method from imtype
-to gotype. If this is not defined no conversion is done.
+to gotype. If this is not defined, or is the empty string, no
+conversion is done.
</td>
</tr>
@@ -869,7 +872,8 @@ to gotype. If this is not defined no conversion is done.
<td>godirectorout</td>
<td>
Go code to convert a value returned from a director method from gotype
-to imtype. If this is not defined no conversion is done.
+to imtype. If this is not defined, or is the empty string, no
+conversion is done.
</td>
</tr>