~ubuntu-branches/debian/sid/postgresql-9.3/sid

« back to all changes in this revision

Viewing changes to src/include/getopt_long.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 05:39:52 UTC
  • Revision ID: package-import@ubuntu.com-20130508053952-1j7uilp7mjtrvq8q
Tags: upstream-9.3~beta1
ImportĀ upstreamĀ versionĀ 9.3~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-2013, PostgreSQL Global Development Group
 
6
 *
 
7
 * src/include/getopt_long.h
 
8
 */
 
9
#ifndef GETOPT_LONG_H
 
10
#define GETOPT_LONG_H
 
11
 
 
12
#ifdef HAVE_GETOPT_H
 
13
#include <getopt.h>
 
14
#endif
 
15
 
 
16
/* These are picked up from the system's getopt() facility. */
 
17
extern int      opterr;
 
18
extern int      optind;
 
19
extern int      optopt;
 
20
extern char *optarg;
 
21
 
 
22
#ifndef HAVE_STRUCT_OPTION
 
23
 
 
24
struct option
 
25
{
 
26
        const char *name;
 
27
        int                     has_arg;
 
28
        int                *flag;
 
29
        int                     val;
 
30
};
 
31
 
 
32
#define no_argument 0
 
33
#define required_argument 1
 
34
#endif
 
35
 
 
36
#ifndef HAVE_GETOPT_LONG
 
37
 
 
38
extern int getopt_long(int argc, char *const argv[],
 
39
                        const char *optstring,
 
40
                        const struct option * longopts, int *longindex);
 
41
#endif
 
42
 
 
43
#endif   /* GETOPT_LONG_H */