Changeset 11324
- Timestamp:
- Jan 26, 2007, 1:40:50 PM (19 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 3 edited
-
cmd.data/book_commands.c (modified) (2 diffs)
-
pantasks/CheckTasks.c (modified) (2 diffs)
-
pantasks/TaskOps.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/book_commands.c
r11081 r11324 363 363 } 364 364 365 Optional = FALSE; 366 if ((N = get_argument (argc, argv, "-optional"))) { 367 remove_argument (N, &argc, argv); 368 Optional = TRUE; 369 } 370 365 371 if (argc != 4) { 366 372 gprint (GP_ERR, "USAGE: book newword (book) (page) (word)\n"); … … 385 391 value = BookGetWord (page, argv[3]); 386 392 if (value == NULL) { 393 if (Optional) { 394 FREE (varName); 395 return TRUE; 396 } 387 397 gprint (GP_ERR, "value %s on page %s in book %s not found\n", argv[3], argv[2], argv[1]); 388 398 FREE (varName); -
trunk/Ohana/src/opihi/pantasks/CheckTasks.c
r11317 r11324 25 25 } 26 26 if (task[0].NpendingMax && (task[0].Npending >= task[0].NpendingMax)) { 27 gettimeofday (&task[0].last, (void *) NULL); 28 continue; 29 } 30 31 /* check if there are errors with this task */ 32 if (!ValidateTask (task, TRUE)) { 27 fprintf (stderr, "npending: %d, max npending: %d\n", task[0].Npending, task[0].NpendingMax); 33 28 gettimeofday (&task[0].last, (void *) NULL); 34 29 continue; … … 42 37 continue; 43 38 } 39 } 40 41 /* check if there are errors with this task */ 42 if (!ValidateTask (task, TRUE)) { 43 gettimeofday (&task[0].last, (void *) NULL); 44 continue; 44 45 } 45 46 -
trunk/Ohana/src/opihi/pantasks/TaskOps.c
r11084 r11324 400 400 401 401 NewTask[0].NpendingMax = 0; /* default value means 'no limit' */ 402 NewTask[0].Npending = 0; /* default value means 'no limit' */ 402 403 403 404 NewTask[0].Njobs = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
