You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postgres/src/include/getopt_long.h

34 lines
785 B

/*
* Portions Copyright (c) 1987, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Portions Copyright (c) 2003
* PostgreSQL Global Development Group
*
23 years ago
* $Header: /cvsroot/pgsql/src/include/getopt_long.h,v 1.2 2003/08/04 00:43:29 momjian Exp $
*/
/* These are picked up from the system's getopt() facility. */
23 years ago
extern int opterr;
extern int optind;
extern int optopt;
extern char *optarg;
/* Some systems have this, otherwise you need to define it somewhere. */
23 years ago
extern int optreset;
23 years ago
struct option
{
const char *name;
23 years ago
int has_arg;
int *flag;
int val;
};
#define no_argument 0
#define required_argument 1
23 years ago
int getopt_long(int argc, char *const argv[],
const char *optstring,
23 years ago
const struct option * longopts, int *longindex);