Changeset 7818 for trunk/ppImage/src/ppImageArguments.c
- Timestamp:
- Jul 5, 2006, 12:57:39 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageArguments.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageArguments.c
r7677 r7818 14 14 15 15 // load the site-wide configuration information 16 pmConfig *config = pmConfigRead( argc, argv);16 pmConfig *config = pmConfigRead(&argc, argv); 17 17 if (config == NULL) { 18 18 psErrorStackPrint(stderr, "Can't find site configuration!\n"); … … 30 30 31 31 // recipe option: -usemask : override MASK setting in phase2.recipe 32 if ((N = psArgumentGet( config->argc, config->argv, "-usemask"))) {33 psArgumentRemove (N, & config->argc, config->argv);32 if ((N = psArgumentGet(argc, argv, "-usemask"))) { 33 psArgumentRemove (N, &argc, argv); 34 34 psMetadataAddBool (options, PS_LIST_TAIL, "MASK", PS_META_REPLACE, "", true); 35 psArgumentRemove (N, & config->argc, config->argv);35 psArgumentRemove (N, &argc, argv); 36 36 } 37 37 … … 54 54 55 55 // chip selection is used to limit chips to be processed 56 if ((N = psArgumentGet ( config->argc, config->argv, "-chip"))) {57 psArgumentRemove (N, & config->argc, config->argv);56 if ((N = psArgumentGet (argc, argv, "-chip"))) { 57 psArgumentRemove (N, &argc, argv); 58 58 psMetadataAddStr (config->arguments, PS_LIST_TAIL, "CHIP_SELECTIONS", PS_DATA_STRING, "", 59 config->argv[N]);60 psArgumentRemove (N, & config->argc, config->argv);59 argv[N]); 60 psArgumentRemove (N, &argc, argv); 61 61 } 62 62 63 if ( config->argc != 2) usage ();63 if (argc != 2) usage (); 64 64 65 65 // Add the input and output images (which remain on the command-line) to the arguments list 66 66 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "Name of the output image", 67 config->argv[1]);67 argv[1]); 68 68 69 69 return config;
Note:
See TracChangeset
for help on using the changeset viewer.
