Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1498)

Side by Side Diff: src/pkg/runtime/mkversion.c

Issue 2083041: code review 2083041: runtime: add GOOS, GOARCH; fix FuncLine (Closed)
Patch Set: code review 2083041: runtime: add GOOS, GOARCH; fix FuncLine Created 14 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/runtime/extern.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <u.h> 1 #include <u.h>
2 #include <libc.h> 2 #include <libc.h>
3 3
4 char *template = 4 char *template =
5 "// generated by mkversion.c; do not edit.\n" 5 "// generated by mkversion.c; do not edit.\n"
6 "package runtime\n" 6 "package runtime\n"
7 "const defaultGoroot = \"%s\"\n" 7 "const defaultGoroot = \"%s\"\n"
8 » "const defaultVersion = \"%s\"\n"; 8 » "const theVersion = \"%s\"\n"
9 » "const theGoarch = \"%s\"\n"
10 » "const theGoos = \"%s\"\n";
9 11
10 void 12 void
11 main(void) 13 main(void)
12 { 14 {
13 » print(template, getgoroot(), getgoversion()); 15 » print(template, getgoroot(), getgoversion(), getgoarch(), getgoos());
14 exits(0); 16 exits(0);
15 } 17 }
OLDNEW
« no previous file with comments | « src/pkg/runtime/extern.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b