{"log", no_argument, 0, 1}, {"3d-version", required_argument, 0, 'v'}, #if OS_WIN32 {"pause", no_argument, 0, 2}, #endif {"help", no_argument, 0, HLP_HELP}, {"version", no_argument, 0, HLP_VERSION}, {0, 0, 0, 0} }; #define short_opts "pao:qsv:wz:" static struct help_msg help[] = { /* <-- */ /* TRANSLATORS: --help output for cavern --output option */ {HLP_ENCODELONG(2), /*set location for output files*/162, 0}, /* TRANSLATORS: --help output for cavern --quiet option */ {HLP_ENCODELONG(3), /*only show brief summary (-qq for errors only)*/163, 0}, /* TRANSLATORS: --help output for cavern --no-auxiliary-files option */ {HLP_ENCODELONG(4), /*do not create .err file*/164, 0}, /* TRANSLATORS: --help output for cavern --warnings-are-errors option */ {HLP_ENCODELONG(5), /*turn warnings into errors*/165, 0}, /* TRANSLATORS: --help output for cavern --log option */ {HLP_ENCODELONG(6), /*log output to .log file*/170, 0}, /* TRANSLATORS: --help output for cavern --3d-version option */ {HLP_ENCODELONG(7), /*specify the 3d file format version to output*/171, 0}, /*{'z', "set optimizations for network reduction"},*/ {0, 0, 0} }; /* atexit functions */
static double threshold = DFLT_MAX_THRESHOLD; static const struct option long_opts[] = { /* const char *name; int has_arg (0 no_argument, 1 required_*, 2 optional_*); int *flag; int val; */ {"survey", required_argument, 0, 's'}, {"help", no_argument, 0, HLP_HELP}, {"version", no_argument, 0, HLP_VERSION}, {0, 0, 0, 0} }; #define short_opts "s:" static struct help_msg help[] = { /* <-- */ {HLP_ENCODELONG(0), /*only load the sub-survey with this prefix*/199, 0}, {0, 0, 0} }; /* We use a hashtable with linked list buckets - this is how many hash table * entries we have. 0x2000 with sizeof(void *) == 4 uses 32K. */ #define TREE_SIZE 0x2000 typedef struct station { struct station *next; char *name; img_point pt; } station; typedef struct added { struct added *next;