LEFT | RIGHT |
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 /* | 5 /* |
6 * static initialization | 6 * static initialization |
7 */ | 7 */ |
8 | 8 |
| 9 #include <u.h> |
| 10 #include <libc.h> |
9 #include "go.h" | 11 #include "go.h" |
10 | 12 |
11 static NodeList *initlist; | 13 static NodeList *initlist; |
12 static void init2(Node*, NodeList**); | 14 static void init2(Node*, NodeList**); |
13 static void init2list(NodeList*, NodeList**); | 15 static void init2list(NodeList*, NodeList**); |
14 | 16 |
15 static void | 17 static void |
16 init1(Node *n, NodeList **out) | 18 init1(Node *n, NodeList **out) |
17 { | 19 { |
18 NodeList *l; | 20 NodeList *l; |
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 goto yes; | 969 goto yes; |
968 | 970 |
969 no: | 971 no: |
970 if(n->dodata == 2) { | 972 if(n->dodata == 2) { |
971 dump("\ngen_as_init", n); | 973 dump("\ngen_as_init", n); |
972 fatal("gen_as_init couldnt make data statement"); | 974 fatal("gen_as_init couldnt make data statement"); |
973 } | 975 } |
974 return 0; | 976 return 0; |
975 } | 977 } |
976 | 978 |
LEFT | RIGHT |