LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2012 The Go Authors. All rights reserved. | 1 // Copyright 2012 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 #include <stdio.h> | |
7 | 6 |
8 /* | 7 /* |
9 * Helpers for building cmd/gc. | 8 * Helpers for building cmd/gc. |
10 */ | 9 */ |
11 | 10 |
12 // gcopnames creates opnames.h from go.h. | 11 // gcopnames creates opnames.h from go.h. |
13 // It finds the OXXX enum, pulls out all the constants | 12 // It finds the OXXX enum, pulls out all the constants |
14 // from OXXX to OEND, and writes a table mapping | 13 // from OXXX to OEND, and writes a table mapping |
15 // op to string. | 14 // op to string. |
16 void | 15 void |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 } | 96 } |
98 } | 97 } |
99 bwritestr(&out, "};\n"); | 98 bwritestr(&out, "};\n"); |
100 writefile(&out, file, 0); | 99 writefile(&out, file, 0); |
101 | 100 |
102 bfree(&b); | 101 bfree(&b); |
103 bfree(&in); | 102 bfree(&in); |
104 bfree(&out); | 103 bfree(&out); |
105 vfree(&lines); | 104 vfree(&lines); |
106 } | 105 } |
LEFT | RIGHT |