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 #include "a.h" | 5 #include "a.h" |
6 | 6 |
7 /* | 7 /* |
8 * Translate a .goc file into a .c file. A .goc file is a combination | 8 * Translate a .goc file into a .c file. A .goc file is a combination |
9 * of a limited form of Go with C. | 9 * of a limited form of Go with C. |
10 */ | 10 */ |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 structround = 4; | 724 structround = 4; |
725 } | 725 } |
726 } | 726 } |
727 | 727 |
728 bprintf(&out, "// auto generated by go tool dist\n// goos=%s goarch=%s\n
\n", goos, goarch); | 728 bprintf(&out, "// auto generated by go tool dist\n// goos=%s goarch=%s\n
\n", goos, goarch); |
729 input = bstr(&in); | 729 input = bstr(&in); |
730 output = &out; | 730 output = &out; |
731 | 731 |
732 process_file(); | 732 process_file(); |
733 ········ | 733 ········ |
734 » writefile(&out, c); | 734 » writefile(&out, c, 0); |
735 } | 735 } |
LEFT | RIGHT |