cmdline fixes
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
static_assert(_Generic( \
|
||||
(opt_limit), \
|
||||
const char**: true, \
|
||||
const struct cmdline_option_limit_int*: true, \
|
||||
const struct cmdline_option_limit_uint*: true, \
|
||||
const struct cmdline_range_int*: true, \
|
||||
const struct cmdline_range_uint*: true, \
|
||||
void*: true \
|
||||
)); \
|
||||
[[__used, __section(".cmdline")]] \
|
||||
@@ -57,10 +57,10 @@ struct cmdline_option {
|
||||
};
|
||||
union {
|
||||
const char** str_limit;
|
||||
struct cmdline_limit_int {
|
||||
struct cmdline_range_int {
|
||||
intptr_t min, max;
|
||||
}* intptr_limit;
|
||||
struct cmdline_limit_uint {
|
||||
struct cmdline_range_uint {
|
||||
uintptr_t min, max;
|
||||
}* uintptr_limit;
|
||||
void* limit;
|
||||
|
||||
Reference in New Issue
Block a user