1 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
2 /* Declarations for getopt.
3    Copyright (C) 1989-2020 Free Software Foundation, Inc.
4    This file is part of gnulib.
5    Unlike most of the getopt implementation, it is NOT shared
6    with the GNU C Library, which supplies a different version of
7    this file.
8 
9    This file is free software; you can redistribute it and/or modify it
10    under the terms of the GNU General Public License as
11    published by the Free Software Foundation; either version 3 of
12    the License, or (at your option) any later version.
13 
14    This file is distributed in the hope that it will be useful, but
15    WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17    General Public License for more details.
18 
19    You should have received a copy of the GNU General Public
20    License along with gnulib; if not, see <https://www.gnu.org/licenses/>.  */
21 
22 #ifndef _GL_GETOPT_H
23 
24 #if __GNUC__ >= 3
25 #pragma GCC system_header
26 #endif
27 
28 
29 /* The include_next requires a split double-inclusion guard.  We must
30    also inform the replacement unistd.h to not recursively use
31    <getopt.h>; our definitions will be present soon enough.  */
32 #if 1
33 # define _GL_SYSTEM_GETOPT
34 # include_next <getopt.h>
35 # undef _GL_SYSTEM_GETOPT
36 #endif
37 
38 #define _GL_GETOPT_H 1
39 
40 /* Standalone applications should #define __GETOPT_PREFIX to an
41    identifier that prefixes the external functions and variables
42    defined in getopt-core.h and getopt-ext.h.  When this happens,
43    include the headers that might declare getopt so that they will not
44    cause confusion if included after this file (if the system had
45    <getopt.h>, we have already included it).  */
46 #if defined __GETOPT_PREFIX
47 # if !1
48 #  define __need_system_stdlib_h
49 #  include <stdlib.h>
50 #  undef __need_system_stdlib_h
51 #  include <stdio.h>
52 #  include <unistd.h>
53 # endif
54 #endif
55 
56 /* The definition of _GL_ARG_NONNULL is copied here.  */
57 /* A C macro for declaring that specific arguments must not be NULL.
58    Copyright (C) 2009-2020 Free Software Foundation, Inc.
59 
60    This program is free software: you can redistribute it and/or modify it
61    under the terms of the GNU General Public License as published
62    by the Free Software Foundation; either version 3 of the License, or
63    (at your option) any later version.
64 
65    This program is distributed in the hope that it will be useful,
66    but WITHOUT ANY WARRANTY; without even the implied warranty of
67    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
68    General Public License for more details.
69 
70    You should have received a copy of the GNU General Public License
71    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
72 
73 /* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools
74    that the values passed as arguments n, ..., m must be non-NULL pointers.
75    n = 1 stands for the first argument, n = 2 for the second argument etc.  */
76 #ifndef _GL_ARG_NONNULL
77 # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
78 #  define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
79 # else
80 #  define _GL_ARG_NONNULL(params)
81 # endif
82 #endif
83 
84 #include <getopt-cdefs.h>
85 #include <getopt-pfx-core.h>
86 #include <getopt-pfx-ext.h>
87 
88 #endif /* _GL_GETOPT_H */
89