mirror of
https://github.com/golang/go
synced 2024-10-03 06:21:21 -06:00
2e20386fc7
These functions are used to call from a C function back to a Go function. This only includes 386 support. R=rsc CC=golang-dev https://golang.org/cl/834045
13 lines
320 B
C
13 lines
320 B
C
// Copyright 2009 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.
|
|
|
|
/*
|
|
* Cgo interface.
|
|
*/
|
|
|
|
void cgocall(void (*fn)(void*), void*);
|
|
void cgocallback(void (*fn)(void), void*, int32);
|
|
void *cmalloc(uintptr);
|
|
void cfree(void*);
|