Mercurial > hg > nnchat
comparison th_args.c @ 378:afbc3bfd3e03
Sync th-libs.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 03 Oct 2011 00:31:46 +0300 |
parents | 9ad157feb99a |
children |
comparison
equal
deleted
inserted
replaced
377:9ad157feb99a | 378:afbc3bfd3e03 |
---|---|
152 | 152 |
153 | 153 |
154 /* Handle short options | 154 /* Handle short options |
155 */ | 155 */ |
156 static BOOL th_args_process_short(char *currArg, int *newArgIndex, | 156 static BOOL th_args_process_short(char *currArg, int *newArgIndex, |
157 BOOL *wasGiven, int argc, char *argv[], | 157 BOOL *wasGiven, int argc, char *argv[], |
158 optarg_t optList[], int optListN, | 158 optarg_t optList[], int optListN, |
159 BOOL (*handleOpt)(int, char *, char *)) | 159 BOOL(*handleOpt) (int, char *, char *)) |
160 { | 160 { |
161 char *tmpArg = currArg, *optArg; | 161 char *tmpArg = currArg, *optArg; |
162 int optN; | 162 int optN; |
163 BOOL isFound; | 163 BOOL isFound; |
164 | 164 |
209 | 209 |
210 | 210 |
211 /* Handle long options | 211 /* Handle long options |
212 */ | 212 */ |
213 static BOOL th_args_process_long(char *currArg, int *newArgIndex, | 213 static BOOL th_args_process_long(char *currArg, int *newArgIndex, |
214 BOOL *wasGiven, int argc, char *argv[], | 214 BOOL *wasGiven, int argc, char *argv[], |
215 optarg_t optList[], int optListN, | 215 optarg_t optList[], int optListN, |
216 BOOL (*handleOpt)(int, char *, char *)) | 216 BOOL(*handleOpt) (int, char *, char *)) |
217 { | 217 { |
218 int optN, optLen, i; | 218 int optN, optLen, i; |
219 char *optArg; | 219 char *optArg; |
220 | 220 |
221 (void) argc; | 221 (void) argc; |
363 } | 363 } |
364 | 364 |
365 | 365 |
366 /* Print help for commandline arguments/options | 366 /* Print help for commandline arguments/options |
367 */ | 367 */ |
368 void th_args_help(FILE * outFile, | 368 void th_args_help(FILE *outFile, |
369 optarg_t optList[], int optListN, | 369 optarg_t optList[], int optListN, |
370 char *progName, char *progUsage) | 370 char *progName, char *progUsage) |
371 { | 371 { |
372 int i, nrequired; | 372 int i, nrequired; |
373 | 373 |