mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-17 08:00:32 +00:00
Remove getopt_long() from headers
We removed this API a long time ago and it was breaking the GNU make open source build.
This commit is contained in:
parent
b881c0ec9e
commit
12452976bd
8 changed files with 12 additions and 23 deletions
16
third_party/getopt/getopt.h
vendored
16
third_party/getopt/getopt.h
vendored
|
@ -1,10 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_THIRD_PARTY_GETOPT_GETOPT_H_
|
||||
#define COSMOPOLITAN_THIRD_PARTY_GETOPT_GETOPT_H_
|
||||
|
||||
#define no_argument 0
|
||||
#define required_argument 1
|
||||
#define optional_argument 2
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
|
@ -14,17 +9,6 @@ extern int optind, opterr, optopt, optreset;
|
|||
int getopt(int, char *const[], const char *) paramsnonnull();
|
||||
int getsubopt(char **, char *const *, char **) paramsnonnull();
|
||||
|
||||
struct option {
|
||||
const char *name;
|
||||
int has_arg;
|
||||
int *flag;
|
||||
int val;
|
||||
};
|
||||
|
||||
int getopt_long(int, char *const *, const char *, const struct option *, int *);
|
||||
int getopt_long_only(int, char *const *, const char *, const struct option *,
|
||||
int *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_THIRD_PARTY_GETOPT_GETOPT_H_ */
|
||||
|
|
1
third_party/make/README.cosmo
vendored
1
third_party/make/README.cosmo
vendored
|
@ -15,6 +15,7 @@ LICENSE
|
|||
|
||||
LOCAL CHANGES
|
||||
|
||||
- Introduce $(uniq token...) native function
|
||||
- .INTERNET variable to allow internet access
|
||||
- .PLEDGE variable which restricts system calls
|
||||
- .UNVEIL variable which controls Landlock LSM
|
||||
|
|
3
third_party/make/getopt.h
vendored
3
third_party/make/getopt.h
vendored
|
@ -16,11 +16,9 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/getopt/getopt.h"
|
||||
/* clang-format off */
|
||||
|
||||
#ifndef _GETOPT_H
|
||||
#if 0 && !defined(_GETOPT_H)
|
||||
#define _GETOPT_H 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -136,6 +134,5 @@ extern int _getopt_internal (int argc, char *const *argv,
|
|||
const char *shortopts,
|
||||
const struct option *longopts, int *longind,
|
||||
int long_only);
|
||||
#endif
|
||||
|
||||
#endif /* getopt.h */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue