This patch adds //go: pragmas directly to declared functions and globals found during CGo processing. This simplifies the logic in the compiler: it no longer has to consider special "C." prefixed function names. It also makes the cgo pass more flexible in the pragmas it emits for functions and global variables. |
||
|---|---|---|
| .. | ||
| include | ||
| basic.go | ||
| basic.out.go | ||
| const.go | ||
| const.out.go | ||
| errors.go | ||
| errors.out.go | ||
| flags.go | ||
| flags.out.go | ||
| symbols.go | ||
| symbols.out.go | ||
| types.go | ||
| types.out.go | ||