Mercurial > hg > nnchat
diff 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 |
line wrap: on
line diff
--- a/th_args.c Mon Oct 03 00:04:33 2011 +0300 +++ b/th_args.c Mon Oct 03 00:31:46 2011 +0300 @@ -154,9 +154,9 @@ /* Handle short options */ static BOOL th_args_process_short(char *currArg, int *newArgIndex, - BOOL *wasGiven, int argc, char *argv[], - optarg_t optList[], int optListN, - BOOL (*handleOpt)(int, char *, char *)) + BOOL *wasGiven, int argc, char *argv[], + optarg_t optList[], int optListN, + BOOL(*handleOpt) (int, char *, char *)) { char *tmpArg = currArg, *optArg; int optN; @@ -211,9 +211,9 @@ /* Handle long options */ static BOOL th_args_process_long(char *currArg, int *newArgIndex, - BOOL *wasGiven, int argc, char *argv[], - optarg_t optList[], int optListN, - BOOL (*handleOpt)(int, char *, char *)) + BOOL *wasGiven, int argc, char *argv[], + optarg_t optList[], int optListN, + BOOL(*handleOpt) (int, char *, char *)) { int optN, optLen, i; char *optArg; @@ -365,7 +365,7 @@ /* Print help for commandline arguments/options */ -void th_args_help(FILE * outFile, +void th_args_help(FILE *outFile, optarg_t optList[], int optListN, char *progName, char *progUsage) {