4-variable-simplifier/cmdln.h

42 lines
598 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;
bool assignment;
} 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);