mirror of
https://github.com/golang/go
synced 2024-11-13 20:30:27 -07:00
918396b3e1
Permit the C preamble to use the _GoString_ type. Permit Go code to pass string values directly to those C types. Add accessors for C code to retrieve sizes and pointers. Fixes #6907 Change-Id: I190c88319ec88a3ef0ddb99f342a843ba69fcaa3 Reviewed-on: https://go-review.googlesource.com/70890 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Austin Clements <austin@google.com>
12 lines
274 B
C
12 lines
274 B
C
// Copyright 2017 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
#include <string.h>
|
|
|
|
#include "_cgo_export.h"
|
|
|
|
int CheckIssue6907C(_GoString_ s) {
|
|
return CheckIssue6907Go(s);
|
|
}
|