40 lines
564 B
C
40 lines
564 B
C
|
|
#include <stdbool.h>
|
|
|
|
struct cmdln_flags
|
|
{
|
|
const char* argv0;
|
|
|
|
const char* command;
|
|
|
|
struct use_operators {
|
|
bool not;
|
|
|
|
bool or, orn, nor;
|
|
|
|
bool and, andn, nand;
|
|
|
|
bool xor, nxor;
|
|
|
|
bool lt, lte, gt, gte;
|
|
|
|
bool ternary;
|
|
} use_operators;
|
|
|
|
bool print_all_and_quit;
|
|
|
|
bool print_max_operators_needed_and_quit;
|
|
|
|
bool assume_yes;
|
|
|
|
bool verbose;
|
|
|
|
bool print_with_color;
|
|
|
|
bool force_rebuild;
|
|
|
|
bool quiet;
|
|
};
|
|
|
|
struct cmdln_flags parse_args(int argc, char* const* argv);
|
|
|