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

Unified Diff: experimental/visual_studio_plugin/src/loop/loop_no_crash.cc

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 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: experimental/visual_studio_plugin/src/loop/loop_no_crash.cc
diff --git a/experimental/visual_studio_plugin/src/loop/loop_no_crash.cc b/experimental/visual_studio_plugin/src/loop/loop_no_crash.cc
deleted file mode 100644
index 5a8a8cfdf5e25334b6c33b5620208fade512e355..0000000000000000000000000000000000000000
--- a/experimental/visual_studio_plugin/src/loop/loop_no_crash.cc
+++ /dev/null
@@ -1,63 +0,0 @@
-#include <stdio.h>
-#include <time.h>
-#include <sys/time.h>
-#include <sys/nacl_syscalls.h>
-
-//#define CRASH_IT
-
-int g_GlobalData = 0;
-void print_line(int count) {
- printf("Running");
- int i = 0;
- for (i = 0; i < count % 5; ++i) {
- printf(".");
- }
- for (; i < 5; ++i) {
- printf(" ");
- }
- printf("\r");
- fflush(stdout);
-}
-
-int print_loop() {
- int count = 0;
- timespec t = {1,0};
-
-#ifdef CRASH_IT
- char *ptr = NULL;
-
- if (*ptr == 0)
- return 1;
-#endif
-
- while (1) {
- print_line(count);
- ++count;
- nanosleep(&t,0);
- }
-
- return 2;
-}
-
-int foo() {
- if (print_loop())
- return 0;
-
- return 1;
-}
-
-class MyFooBarClass {
-public:
- int MyFooVar;
- int MyBarVar;
-};
-
-int main(int argc, const char *argv[]){
- MyFooBarClass fbclass;
-
- fbclass.MyFooVar = 0;
- printf("Hello World\n");
- g_GlobalData++;
- foo();
- return 0;
-}
« no previous file with comments | « experimental/visual_studio_plugin/src/loop/loop.vcproj ('k') | experimental/visual_studio_plugin/src/loop/readme.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698