Changeset 3805
- Timestamp:
- Apr 29, 2005, 8:38:32 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/pois/src/poisParseConfig.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pois/src/poisParseConfig.c
r3792 r3805 4 4 #include "pois.h" 5 5 6 void help(void)6 static void help(void) 7 7 { 8 8 fprintf (stderr, "POIS: Pan-STARRS (or Pricey's) Optimal Image Subtraction\n" … … 26 26 } 27 27 28 poisConfig *poisParseConfig(int argc, // Number of command-line arguments 29 char **argv // Command-line arguments 30 ) 28 poisConfig *restrict poisConfigAlloc(void) 31 29 { 32 poisConfig *config; // Configuration values 33 34 /* Variables for getopt */ 35 int opt; /* Option, from getopt */ 36 extern char *optarg; /* Argument accompanying switch */ 37 extern int optind; /* getopt variables */ 38 39 /* Initialise configuration */ 40 config = (poisConfig *) psAlloc(sizeof(poisConfig)); 30 poisConfig *config = (poisConfig *) psAlloc(sizeof(poisConfig)); 41 31 config->verbose = 0; 42 32 config->refFile = NULL; … … 57 47 config->sigmaRej = 2.5; 58 48 config->penalty = 0.0; 49 50 return config; 51 } 52 53 54 poisConfig *poisParseConfig(int argc, // Number of command-line arguments 55 char **argv // Command-line arguments 56 ) 57 { 58 poisConfig *config = poisConfigAlloc(); // Configuration values 59 60 /* Variables for getopt */ 61 int opt; /* Option, from getopt */ 62 extern char *optarg; /* Argument accompanying switch */ 63 extern int optind; /* getopt variables */ 64 65 /* Initialise configuration */ 59 66 60 67 /* Parse command-line arguments using getopt */
Note:
See TracChangeset
for help on using the changeset viewer.
