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

Unified Diff: native_client_sdk/src/examples/hello_world_glibc/helper_functions.cc

Issue 9234043: Support GLBIC example. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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: native_client_sdk/src/examples/hello_world_glibc/helper_functions.cc
===================================================================
--- native_client_sdk/src/examples/hello_world_glibc/helper_functions.cc (revision 0)
+++ native_client_sdk/src/examples/hello_world_glibc/helper_functions.cc (revision 0)
@@ -0,0 +1,22 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include <algorithm>
+
+#include "helper_functions.h"
+
+namespace hello_world {
+
+int32_t FortyTwo() {
+ return 42;
+}
+
+std::string ReverseText(const std::string& text) {
+ std::string reversed_string(text);
+ // Use reverse to reverse |reversed_string| in place.
+ std::reverse(reversed_string.begin(), reversed_string.end());
+ return reversed_string;
+}
+} // namespace hello_world
+
Property changes on: native_client_sdk/src/examples/hello_world_glibc/helper_functions.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698