Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | enum: Return boolean result for enum_from_name() lookup | Martin Willi | 2014-05-16 | 1 | -21/+30 |
| | | | | | | | | | | | 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 | -1/+0 |
| | | | | | To allow enum.h to depend on utils.h definitions, avoid its direct inclusion. Instead include utils.h, which includes enum.h as well. | ||||
* | unit-tests: Move test suites to its own subfolder | Martin Willi | 2013-11-06 | 1 | -0/+248 |