Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | enum-names: Fail gracefully when passing a NULL value as enum names | Martin Willi | 2015-04-15 | 1 | -1/+5 |
| | |||||
* | enum: Extend printf hook to print flags | Thomas Egerer | 2015-03-03 | 1 | -5/+88 |
| | | | | Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com> | ||||
* | enum: Return boolean result for enum_from_name() lookup | Martin Willi | 2014-05-16 | 1 | -3/+4 |
| | | | | | | | | | | | Handling the result for enum_from_name() is difficult, as checking for negative return values requires a cast if the enum type is unsigned. The new signature clearly differentiates lookup result from lookup value. Further, this actually allows to convert real -1 enum values, which could not be distinguished from "not-found" and the -1 return value. This also fixes several clang warnings where enums are unsigned. | ||||
* | enum: Don't directly include enum.h | Martin Willi | 2014-05-16 | 1 | -0/+1 |
| | | | | | To allow enum.h to depend on utils.h definitions, avoid its direct inclusion. Instead include utils.h, which includes enum.h as well. | ||||
* | Gracefully handle NULL as argument for enum_from_name() | Tobias Brunner | 2013-06-11 | 1 | -1/+1 |
| | |||||
* | Moved enum_name_t to utils folder | Tobias Brunner | 2012-10-24 | 1 | -0/+81 |