enum cmd_token_type
{
WORD_TKN, // words
- NUMBER_TKN, // integral numbers
VARIABLE_TKN, // almost anything
RANGE_TKN, // integer range
IPV4_TKN, // IPV4 addresses
char *text; // token text
char *desc; // token description
- long long value; // for numeric types
long long min, max; // for ranges
char *arg; // user input that matches this token
if (first->min != second->min || first->max != second->max)
return 0;
break;
- case NUMBER_TKN:
- if (first->value != second->value) return 0;
- break;
-
/* selectors and options should be equal if their subgraphs are equal,
* but the graph isomorphism problem is not known to be solvable in
* polynomial time so we consider selectors and options inequal in all