IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 5, 2006, 11:46:36 AM (20 years ago)
Author:
jhoblitt
Message:

always use the PXTOOL_MODE macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/dettoolConfig.c

    r7671 r7815  
    282282
    283283    // find which mode we're running under
    284     int N = 0;
    285     config->mode = DETTOOL_MODE_NONE;
    286     if ((N = psArgumentGet (argc, argv, "-define"))) {
    287         psArgumentRemove (N, &argc, argv);
    288         if (config->mode) {
    289             psError(PS_ERR_UNKNOWN, true, "only one mode selection is allowed");
    290         }
    291         config->mode = DETTOOL_MODE_DEFINE;
    292         config->args = psMemIncrRefCounter(defineArgs);
    293     }
     284    PXTOOL_MODE("-define",          DETTOOL_MODE_DEFINE,        defineArgs);
    294285    PXTOOL_MODE("-raw",             DETTOOL_MODE_RAW,           rawArgs);
    295286    PXTOOL_MODE("-runs",            DETTOOL_MODE_RUNS,          runsArgs);
Note: See TracChangeset for help on using the changeset viewer.