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

Unified Diff: ports/ipython-ppapi/kernel.cc

Issue 1417223003: Switch from using 'nacl_main' to 'main' entry point (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 2 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: ports/ipython-ppapi/kernel.cc
diff --git a/ports/ipython-ppapi/kernel.cc b/ports/ipython-ppapi/kernel.cc
index 98d9667322afef91c2730af287340ea5dc2111c8..9bb7fb9650b6b8e5b2e41fb78f694a1c162356e7 100644
--- a/ports/ipython-ppapi/kernel.cc
+++ b/ports/ipython-ppapi/kernel.cc
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014 Google Inc. All rights reserved.
+/* Copyright (c) 2014 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
@@ -16,7 +16,6 @@
#include "ppapi_simple/ps_interface.h"
#include "nacl_io/nacl_io.h"
-#include "ppapi_simple/ps_main.h"
#include "ppapi_simple/ps_instance.h"
#ifdef __pnacl__
@@ -145,7 +144,7 @@ static PyMethodDef PPMessageMethods[] = {
{NULL, NULL, 0, NULL}
};
-int ipython_kernel_main(int argc, char **argv) {
+int main(int argc, char **argv) {
printf("Setting up unix environment...\n");
if (setup_unix_environment()) {
printf("Error: %s\n", strerror(errno));
@@ -181,5 +180,3 @@ int ipython_kernel_main(int argc, char **argv) {
return 0;
}
-
-PPAPI_SIMPLE_REGISTER_MAIN(ipython_kernel_main)

Powered by Google App Engine
This is Rietveld 408576698