diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-11-01 03:02:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-11-01 03:02:13 +0000 |
commit | 776f27a67f26c795ba8c27a4e69525382b9379c3 (patch) | |
tree | 0285cca6b375a23d93c20efec03cb9adec30f0e0 /libgo/runtime/go-string-to-int-array.c | |
parent | 79e0221796bf5897204e8077afc20e34f88dab3b (diff) | |
download | gcc-776f27a67f26c795ba8c27a4e69525382b9379c3.tar.gz |
compiler, runtime: More steps toward separating int and intgo.
From-SVN: r193059
Diffstat (limited to 'libgo/runtime/go-string-to-int-array.c')
-rw-r--r-- | libgo/runtime/go-string-to-int-array.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libgo/runtime/go-string-to-int-array.c b/libgo/runtime/go-string-to-int-array.c index aff146872a9..16970bdd042 100644 --- a/libgo/runtime/go-string-to-int-array.c +++ b/libgo/runtime/go-string-to-int-array.c @@ -4,15 +4,15 @@ Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ +#include "runtime.h" #include "go-alloc.h" #include "go-string.h" #include "array.h" -#include "runtime.h" #include "arch.h" #include "malloc.h" struct __go_open_array -__go_string_to_int_array (struct __go_string str) +__go_string_to_int_array (String str) { size_t c; const unsigned char *p; @@ -22,8 +22,8 @@ __go_string_to_int_array (struct __go_string str) struct __go_open_array ret; c = 0; - p = str.__data; - pend = p + str.__length; + p = str.str; + pend = p + str.len; while (p < pend) { int rune; @@ -34,7 +34,7 @@ __go_string_to_int_array (struct __go_string str) data = (uint32_t *) runtime_mallocgc (c * sizeof (uint32_t), FlagNoPointers, 1, 0); - p = str.__data; + p = str.str; pd = data; while (p < pend) { |