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

Delta Between Two Patch Sets: src/cmd/6c/swt.c

Issue 6086043: code review 6086043: cmd/cgo, cmd/go: detect dynamic linker automatically (Closed)
Left Patch Set: diff -r 0efe48e1edcf https://code.google.com/p/go/ Created 12 years, 11 months ago
Right Patch Set: diff -r e388ce51be75 https://code.google.com/p/go/ Created 12 years, 10 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:
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/5l/obj.c ('k') | src/cmd/6l/obj.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Inferno utils/6c/swt.c 1 // Inferno utils/6c/swt.c
2 // http://code.google.com/p/inferno-os/source/browse/utils/6c/swt.c 2 // http://code.google.com/p/inferno-os/source/browse/utils/6c/swt.c
3 // 3 //
4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. 4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) 5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net)
6 // Portions Copyright © 1997-1999 Vita Nuova Limited 6 // Portions Copyright © 1997-1999 Vita Nuova Limited
7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov a.com) 7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov a.com)
8 // Portions Copyright © 2004,2006 Bruce Ellis 8 // Portions Copyright © 2004,2006 Bruce Ellis
9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) 9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net)
10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others 10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 252
253 Bprint(&b, "\n"); 253 Bprint(&b, "\n");
254 Bprint(&b, "$$ // exports\n\n"); 254 Bprint(&b, "$$ // exports\n\n");
255 Bprint(&b, "$$ // local types\n\n"); 255 Bprint(&b, "$$ // local types\n\n");
256 Bprint(&b, "$$ // dynimport\n"); 256 Bprint(&b, "$$ // dynimport\n");
257 for(i=0; i<ndynimp; i++) 257 for(i=0; i<ndynimp; i++)
258 Bprint(&b, "dynimport %s %s %s\n", dynimp[i].local, dyni mp[i].remote, dynimp[i].path); 258 Bprint(&b, "dynimport %s %s %s\n", dynimp[i].local, dyni mp[i].remote, dynimp[i].path);
259 Bprint(&b, "\n$$ // dynexport\n"); 259 Bprint(&b, "\n$$ // dynexport\n");
260 for(i=0; i<ndynexp; i++) 260 for(i=0; i<ndynexp; i++)
261 Bprint(&b, "dynexport %s %s\n", dynexp[i].local, dynexp[ i].remote); 261 Bprint(&b, "dynexport %s %s\n", dynexp[i].local, dynexp[ i].remote);
262 Bprint(&b, "\n$$ // dynlinker\n");
263 if(dynlinker != nil) {
264 Bprint(&b, "dynlinker %s\n", dynlinker);
265 }
262 Bprint(&b, "\n$$\n\n"); 266 Bprint(&b, "\n$$\n\n");
263 } 267 }
264 Bprint(&b, "!\n"); 268 Bprint(&b, "!\n");
265 269
266 outhist(&b); 270 outhist(&b);
267 for(sym=0; sym<NSYM; sym++) { 271 for(sym=0; sym<NSYM; sym++) {
268 h[sym].sym = S; 272 h[sym].sym = S;
269 h[sym].type = 0; 273 h[sym].type = 0;
270 } 274 }
271 sym = 1; 275 sym = 1;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 } 624 }
621 625
622 int32 626 int32
623 maxround(int32 max, int32 v) 627 maxround(int32 max, int32 v)
624 { 628 {
625 v += SZ_VLONG-1; 629 v += SZ_VLONG-1;
626 if(v > max) 630 if(v > max)
627 max = xround(v, SZ_VLONG); 631 max = xround(v, SZ_VLONG);
628 return max; 632 return max;
629 } 633 }
LEFTRIGHT

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