LEFT | RIGHT |
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 typedef int bool; | 5 typedef int bool; |
6 | 6 |
7 // The Time unit is unspecified; we just need to | 7 // The Time unit is unspecified; we just need to |
8 // be able to compare whether t1 is older than t2 with t1 < t2. | 8 // be able to compare whether t1 is older than t2 with t1 < t2. |
9 typedef long long Time; | 9 typedef long long Time; |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 void vcopy(Vec *dst, char **src, int n); | 55 void vcopy(Vec *dst, char **src, int n); |
56 void vfree(Vec *v); | 56 void vfree(Vec *v); |
57 void vgrow(Vec *v, int n); | 57 void vgrow(Vec *v, int n); |
58 void vinit(Vec *v); | 58 void vinit(Vec *v); |
59 void vreset(Vec *v); | 59 void vreset(Vec *v); |
60 void vuniq(Vec *v); | 60 void vuniq(Vec *v); |
61 void splitlines(Vec*, char*); | 61 void splitlines(Vec*, char*); |
62 void splitfields(Vec*, char*); | 62 void splitfields(Vec*, char*); |
63 | 63 |
64 // build.c | 64 // build.c |
65 extern char *default_goroot; | |
66 extern char *goarch; | 65 extern char *goarch; |
67 extern char *gobin; | 66 extern char *gobin; |
68 extern char *gochar; | 67 extern char *gochar; |
69 extern char *gohostarch; | 68 extern char *gohostarch; |
70 extern char *gohostos; | 69 extern char *gohostos; |
71 extern char *goos; | 70 extern char *goos; |
72 extern char *goroot; | 71 extern char *goroot; |
73 extern char *goroot_final; | 72 extern char *goroot_final; |
74 extern char *goversion; | 73 extern char *goversion; |
75 extern char *workdir; | 74 extern char *workdir; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 void xrealwd(Buf *b, char *path); | 138 void xrealwd(Buf *b, char *path); |
140 void xremove(char *p); | 139 void xremove(char *p); |
141 void xremoveall(char *p); | 140 void xremoveall(char *p); |
142 void xsetenv(char*, char*); | 141 void xsetenv(char*, char*); |
143 int xstrcmp(char*, char*); | 142 int xstrcmp(char*, char*); |
144 char* xstrdup(char *p); | 143 char* xstrdup(char *p); |
145 int xstrlen(char*); | 144 int xstrlen(char*); |
146 char* xstrrchr(char*, int); | 145 char* xstrrchr(char*, int); |
147 char* xstrstr(char*, char*); | 146 char* xstrstr(char*, char*); |
148 char* xworkdir(void); | 147 char* xworkdir(void); |
LEFT | RIGHT |