~ubuntu-branches/debian/experimental/postgresql-11/experimental

« back to all changes in this revision

Viewing changes to src/include/getopt_long.h

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2018-05-22 14:19:08 UTC
  • Revision ID: package-import@ubuntu.com-20180522141908-0oy9ujs1b5vrda74
Tags: upstream-11~beta1
ImportĀ upstreamĀ versionĀ 11~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Portions Copyright (c) 1987, 1993, 1994
 
3
 * The Regents of the University of California.  All rights reserved.
 
4
 *
 
5
 * Portions Copyright (c) 2003-2018, PostgreSQL Global Development Group
 
6
 *
 
7
 * src/include/getopt_long.h
 
8
 */
 
9
#ifndef GETOPT_LONG_H
 
10
#define GETOPT_LONG_H
 
11
 
 
12
#include "pg_getopt.h"
 
13
 
 
14
#ifndef HAVE_STRUCT_OPTION
 
15
 
 
16
struct option
 
17
{
 
18
        const char *name;
 
19
        int                     has_arg;
 
20
        int                *flag;
 
21
        int                     val;
 
22
};
 
23
 
 
24
#define no_argument 0
 
25
#define required_argument 1
 
26
#define optional_argument 2
 
27
#endif
 
28
 
 
29
#ifndef HAVE_GETOPT_LONG
 
30
 
 
31
extern int getopt_long(int argc, char *const argv[],
 
32
                        const char *optstring,
 
33
                        const struct option *longopts, int *longindex);
 
34
#endif
 
35
 
 
36
#endif                                                  /* GETOPT_LONG_H */