OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |