mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
fa20edc44d
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
25 lines
560 B
C
25 lines
560 B
C
#ifndef _GETOPT_EXT_H
|
|
#define _GETOPT_EXT_H
|
|
#ifdef COSMOPOLITAN_GETOPT_H_
|
|
#error "don't mix getopt_long() with cosmo's getopt()"
|
|
#endif
|
|
|
|
#define no_argument 0
|
|
#define required_argument 1
|
|
#define optional_argument 2
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
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 /* _GETOPT_EXT_H */
|