Adding upstream version 0.0~git20250520.a1d9079+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
590ac7ff5f
commit
20149b7f3a
456 changed files with 70406 additions and 0 deletions
66
bind/testdata/underscores.objc.m.golden
vendored
Normal file
66
bind/testdata/underscores.objc.m.golden
vendored
Normal file
|
@ -0,0 +1,66 @@
|
|||
// Objective-C API for talking to underscores Go package.
|
||||
// gobind -lang=objc underscores
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
#include "seq.h"
|
||||
#include "_cgo_export.h"
|
||||
#include "Underscore_pkg.objc.h"
|
||||
|
||||
|
||||
@implementation Underscore_pkgUnderscore_struct {
|
||||
}
|
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref {
|
||||
self = [super init];
|
||||
if (self) { __ref = ref; }
|
||||
return self;
|
||||
}
|
||||
|
||||
- (nonnull instancetype)init {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
__ref = go_seq_from_refnum(new_underscore_pkg_Underscore_struct());
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSString* _Nonnull)underscore_field {
|
||||
int32_t refnum = go_seq_go_to_refnum(self._ref);
|
||||
nstring r0 = proxyunderscore_pkg_Underscore_struct_Underscore_field_Get(refnum);
|
||||
NSString *_r0 = go_seq_to_objc_string(r0);
|
||||
return _r0;
|
||||
}
|
||||
|
||||
- (void)setUnderscore_field:(NSString* _Nonnull)v {
|
||||
int32_t refnum = go_seq_go_to_refnum(self._ref);
|
||||
nstring _v = go_seq_from_objc_string(v);
|
||||
proxyunderscore_pkg_Underscore_struct_Underscore_field_Set(refnum, _v);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@implementation Underscore_pkg
|
||||
+ (void) setUnderscore_var:(long)v {
|
||||
nint _v = (nint)v;
|
||||
var_setunderscore_pkg_Underscore_var(_v);
|
||||
}
|
||||
|
||||
+ (long) underscore_var {
|
||||
nint r0 = var_getunderscore_pkg_Underscore_var();
|
||||
long _r0 = (long)r0;
|
||||
return _r0;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
void Underscore_pkgUnderscore_func(void) {
|
||||
proxyunderscore_pkg__Underscore_func();
|
||||
}
|
||||
|
||||
__attribute__((constructor)) static void init() {
|
||||
init_seq();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue