forked from golang/mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bind: ignore type aliases to basic types
- Loading branch information
1 parent
ca3c581
commit c5d4a48
Showing
10 changed files
with
146 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package issue29559 | ||
|
||
type AString = string | ||
|
||
func TakesAString(s AString) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Package main is an autogenerated binder stub for package issue29559. | ||
// gobind -lang=go issue29559 | ||
// | ||
// File is generated by gobind. Do not edit. | ||
package main | ||
|
||
/* | ||
#include <stdlib.h> | ||
#include <stdint.h> | ||
#include "seq.h" | ||
#include "issue29559.h" | ||
|
||
*/ | ||
import "C" | ||
|
||
import ( | ||
_seq "golang.org/x/mobile/bind/seq" | ||
"issue29559" | ||
) | ||
|
||
// suppress the error if seq ends up unused | ||
var _ = _seq.FromRefNum | ||
|
||
//export proxyissue29559__TakesAString | ||
func proxyissue29559__TakesAString(param_s C.nstring) { | ||
_param_s := decodeString(param_s) | ||
issue29559.TakesAString(_param_s) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// JNI functions for the Go <=> Java bridge. | ||
// gobind -lang=java issue29559 | ||
// | ||
// File is generated by gobind. Do not edit. | ||
|
||
#include <android/log.h> | ||
#include <stdint.h> | ||
#include "seq.h" | ||
#include "_cgo_export.h" | ||
#include "issue29559.h" | ||
|
||
|
||
JNIEXPORT void JNICALL | ||
Java_issue29559_Issue29559__1init(JNIEnv *env, jclass _unused) { | ||
jclass clazz; | ||
} | ||
|
||
JNIEXPORT void JNICALL | ||
Java_issue29559_Issue29559_takesAString(JNIEnv* env, jclass _clazz, jstring s) { | ||
nstring _s = go_seq_from_java_string(env, s); | ||
proxyissue29559__TakesAString(_s); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Java class issue29559.Issue29559 is a proxy for talking to a Go program. | ||
// gobind -lang=java issue29559 | ||
// | ||
// File is generated by gobind. Do not edit. | ||
package issue29559; | ||
|
||
import go.Seq; | ||
|
||
public abstract class Issue29559 { | ||
static { | ||
Seq.touch(); // for loading the native library | ||
_init(); | ||
} | ||
|
||
private Issue29559() {} // uninstantiable | ||
|
||
// touch is called from other bound packages to initialize this package | ||
public static void touch() {} | ||
|
||
private static native void _init(); | ||
|
||
|
||
|
||
public static native void takesAString(String s); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// JNI function headers for the Go <=> Java bridge. | ||
// gobind -lang=java issue29559 | ||
// | ||
// File is generated by gobind. Do not edit. | ||
|
||
#ifndef __Issue29559_H__ | ||
#define __Issue29559_H__ | ||
|
||
#include <jni.h> | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Objective-C API for talking to issue29559 Go package. | ||
// gobind -lang=objc issue29559 | ||
// | ||
// File is generated by gobind. Do not edit. | ||
|
||
#ifndef __GO_issue29559_H__ | ||
#define __GO_issue29559_H__ | ||
|
||
#include <stdint.h> | ||
#include <objc/objc.h> | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Objective-C API for talking to issue29559 Go package. | ||
// gobind -lang=objc issue29559 | ||
// | ||
// File is generated by gobind. Do not edit. | ||
|
||
#ifndef __Issue29559_H__ | ||
#define __Issue29559_H__ | ||
|
||
@import Foundation; | ||
#include "Universe.objc.h" | ||
|
||
|
||
FOUNDATION_EXPORT void Issue29559TakesAString(NSString* s); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Objective-C API for talking to issue29559 Go package. | ||
// gobind -lang=objc issue29559 | ||
// | ||
// File is generated by gobind. Do not edit. | ||
|
||
#include <Foundation/Foundation.h> | ||
#include "seq.h" | ||
#include "_cgo_export.h" | ||
#include "Issue29559.objc.h" | ||
|
||
|
||
void Issue29559TakesAString(NSString* s) { | ||
nstring _s = go_seq_from_objc_string(s); | ||
proxyissue29559__TakesAString(_s); | ||
} | ||
|
||
__attribute__((constructor)) static void init() { | ||
init_seq(); | ||
} |