IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 16, 2008, 9:16:26 AM (18 years ago)
Author:
eugene
Message:

adding mmextract and supporting api changes to dbCmdlineField.c functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/mextract.c

    r16936 r19579  
    33int mextract (int argc, char **argv) {
    44 
    5   int i, j, k, m, n, N, Npts, NPTS, last, Nfields, Nreturn, Ncstack, Nstack;
     5  int i, j, k, m, n, N, Npts, NPTS, last, next, state, Nfields, Nreturn, Ncstack, Nstack;
    66  int Nsecfilt, VERBOSE, loadImages, mosaicMode;
    77  char **cstack, name[1024];
     
    5050  if (fields == NULL) return (FALSE);
    5151
    52   // XXX add the skyregion limits as if it were a where statement
     52  // examine line for 'where' or 'match to'.  'match to' is forbidden
     53  state = dbCmdlineConditions (argc, argv, last, &next);
     54  if (state == DVO_DB_CMDLINE_ERROR) goto escape;
     55  if (state == DVO_DB_CMDLINE_IS_MATCH) goto escape; // not allowed for mextract
    5356
    5457  // parse the remainder of the line as a boolean math expression
    55   cstack = isolate_elements (argc-last, &argv[last], &Ncstack);
     58  cstack = isolate_elements (argc-next, &argv[next], &Ncstack);
    5659 
    5760  // construct the db Boolean math stack (frees cstack)
Note: See TracChangeset for help on using the changeset viewer.