Changeset 21257 for trunk/ppSub/src/ppSubArguments.c
- Timestamp:
- Feb 1, 2009, 11:55:34 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubArguments.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubArguments.c
r21183 r21257 1 #ifdef HAVE_CONFIG_H2 #include <config.h>3 #endif4 5 #include <stdio.h>6 #include <string.h>7 #include <pslib.h>8 #include <psmodules.h>9 #include <psphot.h>10 11 1 #include "ppSub.h" 12 2 … … 172 162 bool ppSubArgumentsSetup(int argc, char *argv[], pmConfig *config) 173 163 { 164 int argnum; // Argument Number 174 165 assert(config); 175 166 … … 180 171 } 181 172 182 { 183 int arg; // Argument Number 184 if ((arg = psArgumentGet(argc, argv, "-psphot-visual"))) { 185 psArgumentRemove(arg, &argc, argv); 186 psMetadataAddBool(recipe, PS_LIST_TAIL, "PSPHOT.VISUAL", 0, "Visual guide to psphot?", true); 187 } 173 if ((argnum = psArgumentGet(argc, argv, "-psphot-visual"))) { 174 psArgumentRemove(argnum, &argc, argv); 175 psphotSetVisual(true); 188 176 } 189 177 … … 381 369 } 382 370 371 // XXX move this to ppSubArguments 372 int threads = psMetadataLookupS32(NULL, config->arguments, "-threads"); // Number of threads 373 if (threads > 0) { 374 if (!psThreadPoolInit(threads)) { 375 psError(PS_ERR_UNKNOWN, false, "Unable to setup %d threads", threads); 376 return false; 377 } 378 } 379 383 380 return true; 384 381
Note:
See TracChangeset
for help on using the changeset viewer.
