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

Side by Side Diff: src/cmd/dist/buildgo.c

Issue 12404043: code review 12404043: cmd/dist: generate cmd/cgo/zdefaultcc.go on windows (fi... (Closed)
Patch Set: diff -r 74fe22b6b5f3 https://go.googlecode.com/hg/ Created 11 years, 8 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 | « no previous file | 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 // 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 6
7 /* 7 /*
8 * Helpers for building cmd/go and cmd/cgo. 8 * Helpers for building cmd/go and cmd/cgo.
9 */ 9 */
10 10
(...skipping 18 matching lines...) Expand all
29 "package main\n" 29 "package main\n"
30 "\n" 30 "\n"
31 "const defaultCC = `%s`\n", 31 "const defaultCC = `%s`\n",
32 defaultcc); 32 defaultcc);
33 33
34 writefile(&out, file, 0); 34 writefile(&out, file, 0);
35 35
36 // Convert file name to replace. 36 // Convert file name to replace.
37 binit(&b);······ 37 binit(&b);······
38 bwritestr(&b, file); 38 bwritestr(&b, file);
39 » bsubst(&b, "/go/zdefaultcc.go", "/cgo/zdefaultcc.go"); 39 » if(slash[0] == '/')
40 » » bsubst(&b, "/go/zdefaultcc.go", "/cgo/zdefaultcc.go");
41 » else
42 » » bsubst(&b, "\\go\\zdefaultcc.go", "\\cgo\\zdefaultcc.go");
40 writefile(&out, bstr(&b), 0); 43 writefile(&out, bstr(&b), 0);
41 44
42 bfree(&b); 45 bfree(&b);
43 bfree(&out); 46 bfree(&out);
44 } 47 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

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