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

Unified Diff: native_client_sdk/src/examples/getting_started/simple_hello_world/hello_world.c

Issue 23661005: [NaCl SDK] Add a very simple getting_started example at top-level. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add hello_tutorial.nmf Created 7 years, 3 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/getting_started/simple_hello_world/hello_world.c
diff --git a/native_client_sdk/src/examples/getting_started/simple_hello_world/hello_world.c b/native_client_sdk/src/examples/getting_started/simple_hello_world/hello_world.c
deleted file mode 100644
index 9c98d6cd56d985188ac83778d29c6bcaaca06745..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/examples/getting_started/simple_hello_world/hello_world.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Copyright (c) 2013 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 <stdio.h>
-#include <string.h>
-
-#include "ppapi_simple/ps_main.h"
-
-#ifdef SEL_LDR
-#define example_main main
-#endif
-
-int example_main(int argc, char* argv[]) {
- /* Use ppb_messaging to send "Hello World" to JavaScript. */
- printf("Hello World STDOUT.\n");
-
- /* Use ppb_console send "Hello World" to the JavaScript Console. */
- fprintf(stderr, "Hello World STDERR.\n");
- return 0;
-}
-
-/*
- * Register the function to call once the Instance Object is initialized.
- * see: pappi_simple/ps_main.h
- */
-PPAPI_SIMPLE_REGISTER_MAIN(example_main)

Powered by Google App Engine
This is Rietveld 408576698