Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(24)

Side by Side Diff: src/pkg/runtime/malloc.goc

Issue 904046: code review 904046: runtime: rename cgo2c, *.cgo to goc2c, *.goc (Closed)
Patch Set: code review 904046: runtime: rename cgo2c, *.cgo to goc2c, *.goc Created 14 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/runtime/goc2c.c ('k') | src/pkg/runtime/mingw/syscall.goc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // See malloc.h for overview. 5 // See malloc.h for overview.
6 // 6 //
7 // TODO(rsc): double-check stats. 7 // TODO(rsc): double-check stats.
8 8
9 package runtime 9 package runtime
10 #include "runtime.h" 10 #include "runtime.h"
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 } 369 }
370 nret = (nret + sizeof(void*)-1) & ~(sizeof(void*)-1); 370 nret = (nret + sizeof(void*)-1) & ~(sizeof(void*)-1);
371 371
372 if(getfinalizer(obj.data, 0)) { 372 if(getfinalizer(obj.data, 0)) {
373 printf("runtime.SetFinalizer: finalizer already set"); 373 printf("runtime.SetFinalizer: finalizer already set");
374 goto throw; 374 goto throw;
375 } 375 }
376 } 376 }
377 addfinalizer(obj.data, finalizer.data, nret); 377 addfinalizer(obj.data, finalizer.data, nret);
378 } 378 }
OLDNEW
« no previous file with comments | « src/pkg/runtime/goc2c.c ('k') | src/pkg/runtime/mingw/syscall.goc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b