diff example/many_task/main.cc @ 256:2c775d229cc6 draft

fix examples
author tkaito@localhost.localdomain
date Wed, 03 Jun 2009 16:14:06 +0900
parents 56314060907f
children 984e7890db0c
line wrap: on
line diff
--- a/example/many_task/main.cc	Wed Jun 03 15:46:07 2009 +0900
+++ b/example/many_task/main.cc	Wed Jun 03 16:14:06 2009 +0900
@@ -28,7 +28,7 @@
     gettimeofday(&tv, NULL);
     return tv.tv_sec + (double)tv.tv_usec*1e-6;
 }
-
+/*
 static void
 show_data(void)
 {
@@ -38,8 +38,9 @@
     }
     puts("-----------------------------------------------");
 }
+*/
 
-const char *help_str = "Usage: ./sort [option]\n \
+const char *usr_help_str = "Usage: ./sort [option]\n \
 options\n\
   -cpu     Number of SPE used (default 1)\n\
   -l, --length  Sorted number of data (default 1200)\n\
@@ -52,10 +53,7 @@
         if (strcmp(argv[i], "--length") == 0 || strcmp(argv[i], "-l") == 0) {
             length = atoi(argv[++i]);
         }
-	if (strcmp(argv[i], "--help") == 0 || strcmp(argv[i], "-h") == 0) {
-	    printf("%s\n", help_str);
-	    return -1;
-	}
+
     }
 
     return 0;