summaryrefslogtreecommitdiff
path: root/Lib/go
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/go')
-rw-r--r--Lib/go/goruntime.swg4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/go/goruntime.swg b/Lib/go/goruntime.swg
index d776e414a..8f6eb742e 100644
--- a/Lib/go/goruntime.swg
+++ b/Lib/go/goruntime.swg
@@ -113,6 +113,8 @@ static char *_swig_topofstack() {
}
}
+/* This is here for backward compatibility, but it will not work
+ with Go 1.5 or later. Do not use it in new code. */
static void *_swig_goallocate(size_t len) {
struct {
size_t len;
@@ -246,6 +248,8 @@ void SwigCgocallBackDone() {
%insert(runtime) %{
+/* This is here for backward compatibility, but it will not work
+ with Go 1.5 or later. Do not use it in new code. */
static _gostring_ _swig_makegostring(const char *p, size_t l) {
_gostring_ ret;
ret.p = (char*)_swig_goallocate(l + 1);