Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. | |
| 3 * Use of this source code is governed by a BSD-style license that can be | |
| 4 * found in the LICENSE file. | |
| 5 */ | |
| 6 | |
| 7 /* Define a typical entry point for command line tools spawned by bash | |
| 8 * (e.g., ls, objdump, and objdump). */ | |
| 9 | |
| 10 #include "ppapi_simple/ps_main.h" | |
| 11 #include "nacl_main.h" | |
| 12 | |
| 13 extern int nacl_main(int argc, char *argv[]); | |
|
Sam Clegg
2015/02/17 18:22:45
This is declared in nacl_main.h already.
gdeepti
2015/02/17 21:06:49
Acknowledged.
| |
| 14 void setup_nacl_spawn_env(); | |
|
Sam Clegg
2015/02/17 18:22:45
Declare this in nacl_main.h too.
Also, can can ch
gdeepti
2015/02/17 21:06:49
Done.
| |
| 15 | |
| 16 int cli_main(int argc, char* argv[]) { | |
| 17 setup_nacl_spawn_env(); | |
| 18 return nacl_main(argc, argv); | |
| 19 } | |
| 20 | |
| 21 PPAPI_SIMPLE_REGISTER_MAIN(cli_main) | |
| OLD | NEW |