Chromium Code Reviews| Index: runtime/bin/utils.h |
| diff --git a/runtime/bin/utils.h b/runtime/bin/utils.h |
| index ab02ebe647d02adada402037b78ab615b43b5fd4..5311d361e6523fb7027252a51450049665671600 100644 |
| --- a/runtime/bin/utils.h |
| +++ b/runtime/bin/utils.h |
| @@ -84,6 +84,9 @@ class StringUtils { |
| intptr_t len = -1, |
| intptr_t* result_len = NULL); |
| + // Not all platforms support strndup. |
| + static char* StrNDup(const char* s, intptr_t n); |
|
siva
2016/08/30 01:22:59
Now that you have this implemented here, I am wond
zra
2016/08/30 16:05:18
Code in runtime/vm shouldn't depend on code in run
|
| + |
| private: |
| DISALLOW_ALLOCATION(); |
| DISALLOW_IMPLICIT_CONSTRUCTORS(StringUtils); |