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

Side by Side Diff: src/pkg/runtime/string.goc

Issue 5490053: code review 5490053: runtime: make more build-friendly (Closed)
Patch Set: diff -r 046739c8299b https://go.googlecode.com/hg/ Created 13 years, 3 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/stack.h ('k') | src/pkg/runtime/symtab.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 package runtime 5 package runtime
6 #include "runtime.h" 6 #include "runtime.h"
7 #include "arch.h" 7 #include "arch_GOARCH.h"
8 #include "malloc.h" 8 #include "malloc.h"
9 9
10 String runtime·emptystring; 10 String runtime·emptystring;
11 11
12 int32 12 int32
13 runtime·findnull(byte *s) 13 runtime·findnull(byte *s)
14 { 14 {
15 int32 l; 15 int32 l;
16 16
17 if(s == nil) 17 if(s == nil)
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 if(retv < Runeself) { 363 if(retv < Runeself) {
364 retk = k+1; 364 retk = k+1;
365 goto out; 365 goto out;
366 } 366 }
367 367
368 // multi-char rune 368 // multi-char rune
369 retk = k + runtime·charntorune(&retv, s.str+k, s.len-k); 369 retk = k + runtime·charntorune(&retv, s.str+k, s.len-k);
370 370
371 out: 371 out:
372 } 372 }
OLDNEW
« no previous file with comments | « src/pkg/runtime/stack.h ('k') | src/pkg/runtime/symtab.c » ('j') | no next file with comments »

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