aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/malloc.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2009-01-14 08:21:25 -0800
committerIan Lance Taylor <iant@golang.org>2009-01-14 08:21:25 -0800
commit2b57a1124e87b0dc8bc1ff6899297b4d7d6e74f2 (patch)
treed0144cd3feb6e3aa4fe28e475ef368248b2afd73 /src/runtime/malloc.h
parent58b280db3b161310cdccfd45c9aef1999245af0f (diff)
downloadgo-2b57a1124e87b0dc8bc1ff6899297b4d7d6e74f2.tar.xz
Add cgo2c program to translate mixed Go/C code into C. This
lets us use a single source file for both 6c and gcc, handling the incompatible handling of return values. R=rsc DELTA=649 (613 added, 35 deleted, 1 changed) OCL=22682 CL=22730
Diffstat (limited to 'src/runtime/malloc.h')
-rw-r--r--src/runtime/malloc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/malloc.h b/src/runtime/malloc.h
index 8b4d76919a..ca05f0191e 100644
--- a/src/runtime/malloc.h
+++ b/src/runtime/malloc.h
@@ -364,3 +364,7 @@ void MHeap_Init(MHeap *h, void *(*allocator)(uintptr));
MSpan* MHeap_Alloc(MHeap *h, uintptr npage, int32 sizeclass);
void MHeap_Free(MHeap *h, MSpan *s);
MSpan* MHeap_Lookup(MHeap *h, PageID p);
+
+void* malloc(uintptr size);
+void free(void *v);
+void mlookup(void *v, byte **base, uintptr *size);