mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Get rid of unnecessary extern "C" blocks
This commit is contained in:
32
include/extern/getopt.hpp
vendored
32
include/extern/getopt.hpp
vendored
@@ -5,24 +5,24 @@
|
|||||||
#ifndef RGBDS_EXTERN_GETOPT_HPP
|
#ifndef RGBDS_EXTERN_GETOPT_HPP
|
||||||
#define RGBDS_EXTERN_GETOPT_HPP
|
#define RGBDS_EXTERN_GETOPT_HPP
|
||||||
|
|
||||||
extern "C" {
|
// clang-format off: vertically align values
|
||||||
extern char *musl_optarg;
|
static constexpr int no_argument = 0;
|
||||||
extern int musl_optind, musl_opterr, musl_optopt, musl_optreset;
|
static constexpr int required_argument = 1;
|
||||||
|
static constexpr int optional_argument = 2;
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
struct option {
|
extern char *musl_optarg;
|
||||||
char const *name;
|
extern int musl_optind, musl_opterr, musl_optopt, musl_optreset;
|
||||||
int has_arg;
|
|
||||||
int *flag;
|
|
||||||
int val;
|
|
||||||
};
|
|
||||||
|
|
||||||
int musl_getopt_long_only(
|
struct option {
|
||||||
int argc, char **argv, char const *optstring, option const *longopts, int *idx
|
char const *name;
|
||||||
);
|
int has_arg;
|
||||||
|
int *flag;
|
||||||
|
int val;
|
||||||
|
};
|
||||||
|
|
||||||
#define no_argument 0
|
int musl_getopt_long_only(
|
||||||
#define required_argument 1
|
int argc, char **argv, char const *optstring, option const *longopts, int *idx
|
||||||
#define optional_argument 2
|
);
|
||||||
}
|
|
||||||
|
|
||||||
#endif // RGBDS_EXTERN_GETOPT_HPP
|
#endif // RGBDS_EXTERN_GETOPT_HPP
|
||||||
|
|||||||
@@ -7,8 +7,6 @@
|
|||||||
#define PACKAGE_VERSION_MINOR 9
|
#define PACKAGE_VERSION_MINOR 9
|
||||||
#define PACKAGE_VERSION_PATCH 0
|
#define PACKAGE_VERSION_PATCH 0
|
||||||
|
|
||||||
extern "C" {
|
char const *get_package_version_string();
|
||||||
char const *get_package_version_string();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // RGBDS_VERSION_H
|
#endif // RGBDS_VERSION_H
|
||||||
|
|||||||
Reference in New Issue
Block a user