diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-02-17 21:28:53 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-02-17 21:28:53 +0000 |
commit | 189d7eb970b025c570c7ccce916759083373bdde (patch) | |
tree | f4f7c3a71ecc7851a8a7b86206bbb202b5cab551 /getopt_long.h | |
download | ccache-tarball-189d7eb970b025c570c7ccce916759083373bdde.tar.gz |
ccache-3.3.4HEADccache-3.3.4master
Diffstat (limited to 'getopt_long.h')
-rw-r--r-- | getopt_long.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/getopt_long.h b/getopt_long.h new file mode 100644 index 0000000..c14b4be --- /dev/null +++ b/getopt_long.h @@ -0,0 +1,30 @@ +/* + * Portions Copyright (c) 1987, 1993, 1994 + * The Regents of the University of California. All rights reserved. + * + * Portions Copyright (c) 2003-2010, PostgreSQL Global Development Group + */ +#ifndef GETOPT_LONG_H +#define GETOPT_LONG_H + +extern int opterr; +extern int optind; +extern int optopt; +extern char *optarg; + +struct option +{ + const char *name; + int has_arg; + int *flag; + int val; +}; + +#define no_argument 0 +#define required_argument 1 + +extern int getopt_long(int argc, char *const argv[], + const char *optstring, + const struct option * longopts, int *longindex); + +#endif /* GETOPT_LONG_H */ |