Fix regexp misbehavior with capturing parens inside "{0}".
[pgsql.git] / src / include / getopt_long.h
blob812e2c84bcbe613e6d971c9e91015ea7e5c2e99f
1 /*
2 * Portions Copyright (c) 1987, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
5 * Portions Copyright (c) 2003-2021, PostgreSQL Global Development Group
7 * src/include/getopt_long.h
8 */
9 #ifndef GETOPT_LONG_H
10 #define GETOPT_LONG_H
12 #include "pg_getopt.h"
14 #ifndef HAVE_STRUCT_OPTION
16 struct option
18 const char *name;
19 int has_arg;
20 int *flag;
21 int val;
24 #define no_argument 0
25 #define required_argument 1
26 #define optional_argument 2
27 #endif
29 #ifndef HAVE_GETOPT_LONG
31 extern int getopt_long(int argc, char *const argv[],
32 const char *optstring,
33 const struct option *longopts, int *longindex);
34 #endif
36 #endif /* GETOPT_LONG_H */