IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 5, 2006, 12:46:13 PM (20 years ago)
Author:
Paul Price
Message:

Storing argc as a pointer in pmConfig. As it's a pointer to the original version, we can change what's at the end of the pointer and change the original version. That means that we don't have two copies of argc floating around (one on the pmConfig, and one in the main program). Changed the API for pmConfigRead again, so it modifies argc (keeps everything consistent). Fixed up some assertions to use the correct return type (NULL vs false).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.h

    r7792 r7817  
    33 *  @author PAP, IfA
    44 *
    5  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-07-03 21:26:53 $
     5 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-07-05 22:46:13 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3333    psMetadata *files;                  // pmFPAfiles used for analysis
    3434    psDB *database;                     // Database handle
    35     int argc;                           // Number of command-line arguments
     35    int *argc;                          // Number of command-line arguments
    3636    char **argv;                        // Command-line arguments (raw version)
    3737    // Private members
     
    4141pmConfig;
    4242
    43 pmConfig *pmConfigAlloc(int argc,       // Number of command-line arguments
     43pmConfig *pmConfigAlloc(int *argc,      // Number of command-line arguments
    4444                        char **argv     // Command-line arguments
    4545                       );
     
    6767 */
    6868pmConfig *pmConfigRead(
    69     int argc,
     69    int *argc,
    7070    char **argv);
    7171
Note: See TracChangeset for help on using the changeset viewer.