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

Delta Between Two Patch Sets: src/cmd/cgo/out.go

Issue 91840044: code review 91840044: all: spelling tweaks, A-G (Closed)
Left Patch Set: diff -r e141dda580af https://code.google.com/p/go Created 10 years, 11 months ago
Right Patch Set: diff -r 46ac9e6796a3 https://code.google.com/p/go Created 10 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:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | src/pkg/archive/tar/reader_test.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
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 package main 5 package main
6 6
7 import ( 7 import (
8 "bytes" 8 "bytes"
9 "debug/elf" 9 "debug/elf"
10 "debug/macho" 10 "debug/macho"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 n := f.Name[key] 478 n := f.Name[key]
479 if n.FuncType != nil { 479 if n.FuncType != nil {
480 p.writeOutputFunc(fgcc, n) 480 p.writeOutputFunc(fgcc, n)
481 } 481 }
482 } 482 }
483 483
484 fgo1.Close() 484 fgo1.Close()
485 fgcc.Close() 485 fgcc.Close()
486 } 486 }
487 487
488 // fixGo convers the internal Name.Go field into the name we should show 488 // fixGo converts the internal Name.Go field into the name we should show
489 // to users in error messages. There's only one for now: on input we rewrite 489 // to users in error messages. There's only one for now: on input we rewrite
490 // C.malloc into C._CMalloc, so change it back here. 490 // C.malloc into C._CMalloc, so change it back here.
491 func fixGo(name string) string { 491 func fixGo(name string) string {
492 if name == "_CMalloc" { 492 if name == "_CMalloc" {
493 return "malloc" 493 return "malloc"
494 } 494 }
495 return name 495 return name
496 } 496 }
497 497
498 var isBuiltin = map[string]bool{ 498 var isBuiltin = map[string]bool{
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
1276 typedef double GoFloat64; 1276 typedef double GoFloat64;
1277 typedef __complex float GoComplex64; 1277 typedef __complex float GoComplex64;
1278 typedef __complex double GoComplex128; 1278 typedef __complex double GoComplex128;
1279 1279
1280 typedef struct { char *p; GoInt n; } GoString; 1280 typedef struct { char *p; GoInt n; } GoString;
1281 typedef void *GoMap; 1281 typedef void *GoMap;
1282 typedef void *GoChan; 1282 typedef void *GoChan;
1283 typedef struct { void *t; void *v; } GoInterface; 1283 typedef struct { void *t; void *v; } GoInterface;
1284 typedef struct { void *data; GoInt len; GoInt cap; } GoSlice; 1284 typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
1285 ` 1285 `
LEFTRIGHT

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