summaryrefslogtreecommitdiff
path: root/libgo/runtime/go-alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/go-alloc.h')
-rw-r--r--libgo/runtime/go-alloc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libgo/runtime/go-alloc.h b/libgo/runtime/go-alloc.h
new file mode 100644
index 0000000000..c880a043ea
--- /dev/null
+++ b/libgo/runtime/go-alloc.h
@@ -0,0 +1,11 @@
+/* go-alloc.h -- allocate memory for Go.
+
+ 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. */
+
+#include <stddef.h>
+#include <stdint.h>
+
+extern void *__go_alloc (unsigned int __attribute__ ((mode (pointer))));
+extern void __go_free (void *);