|
a/src/smallut.h |
|
b/src/smallut.h |
|
... |
|
... |
225 |
|
225 |
|
226 |
/// Utilities for printing names for defined values (Ex: O_RDONLY->"O_RDONLY")
|
226 |
/// Utilities for printing names for defined values (Ex: O_RDONLY->"O_RDONLY")
|
227 |
|
227 |
|
228 |
/// Entries for the descriptive table
|
228 |
/// Entries for the descriptive table
|
229 |
struct CharFlags {
|
229 |
struct CharFlags {
|
|
|
230 |
CharFlags(int v, const char *y, const char *n=0)
|
|
|
231 |
: value(v), yesname(y), noname(n) {}
|
230 |
unsigned int value; // Flag or value
|
232 |
unsigned int value; // Flag or value
|
231 |
const char *yesname;// String to print if flag set or equal
|
233 |
const char *yesname;// String to print if flag set or equal
|
232 |
const char *noname; // String to print if flag not set (unused for values)
|
234 |
const char *noname; // String to print if flag not set (unused for values)
|
233 |
};
|
235 |
};
|
234 |
|
236 |
|