Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Unified Diff: runtime/bin/utils.h

Issue 2285223003: Fix native extension lookup (Closed)
Patch Set: Add back test for '/' Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« runtime/bin/loader.cc ('K') | « runtime/bin/loader.cc ('k') | runtime/bin/utils_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698