LEFT | RIGHT |
(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 Loading... |
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 Loading... |
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 ` |
LEFT | RIGHT |