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

Side by Side Diff: native_client_sdk/src/examples/tutorial/debugging/debugging.c

Issue 14607005: [NaCl SDK] Cleanup examples. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /** @file hello_world.c 6 /** @file debugging.c
7 * This example, is a modified version of hello world. It will start a second 7 * This example, is a modified version of hello world. It will start a second
8 * thread and cause that thread to crash via a NULL dereference. 8 * thread and cause that thread to crash via a NULL dereference.
9 */ 9 */
10 #include <stdio.h> 10 #include <stdio.h>
11 #include <stdlib.h> 11 #include <stdlib.h>
12 #include <string.h> 12 #include <string.h>
13 13
14 #include "ppapi/c/pp_errors.h" 14 #include "ppapi/c/pp_errors.h"
15 #include "ppapi/c/pp_module.h" 15 #include "ppapi/c/pp_module.h"
16 #include "ppapi/c/pp_var.h" 16 #include "ppapi/c/pp_var.h"
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 }; 275 };
276 return &messaging_interface; 276 return &messaging_interface;
277 } 277 }
278 return NULL; 278 return NULL;
279 } 279 }
280 280
281 /** 281 /**
282 * Called before the plugin module is unloaded. 282 * Called before the plugin module is unloaded.
283 */ 283 */
284 PP_EXPORT void PPP_ShutdownModule() {} 284 PP_EXPORT void PPP_ShutdownModule() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698