Martin Willi
064fe9c963
enum: Return boolean result for enum_from_name() lookup
...
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.
2014-05-16 15:42:07 +02:00
..
2013-07-18 16:00:30 +02:00
2013-07-18 14:59:19 +02:00
2014-02-12 14:34:32 +01:00
2014-02-12 14:34:32 +01:00
2014-05-16 15:42:07 +02:00
2014-03-31 14:32:44 +02:00
2014-02-12 14:34:32 +01:00
2014-02-12 14:34:32 +01:00
2014-02-12 14:34:32 +01:00
2014-02-12 14:34:32 +01:00
2014-02-12 14:34:32 +01:00
2014-02-12 14:34:32 +01:00
2013-07-18 14:59:19 +02:00
2013-07-18 14:59:19 +02:00
2014-04-09 18:27:02 +02:00
2014-05-16 15:42:07 +02:00
2014-05-16 15:42:07 +02:00
2014-02-12 14:34:32 +01:00
2013-07-18 14:59:19 +02:00
2013-07-18 14:59:19 +02:00
2013-07-18 14:59:19 +02:00
2013-07-18 14:59:19 +02:00
2014-02-12 14:34:32 +01:00
2014-02-12 14:34:32 +01:00
2014-05-12 06:59:21 +02:00
2014-05-12 06:59:21 +02:00
2014-02-12 14:34:32 +01:00
2013-07-18 16:00:29 +02:00
2014-04-17 09:24:51 +02:00
2014-02-12 14:34:32 +01:00
2014-02-12 14:34:32 +01:00
2014-02-12 14:34:32 +01:00
2014-05-16 15:42:07 +02:00
2014-02-18 11:21:51 +01:00
2013-09-04 10:38:37 +02:00
2013-09-04 10:38:37 +02:00
2013-09-04 10:38:37 +02:00
2013-07-18 14:59:19 +02:00
2014-02-12 14:34:32 +01:00
2013-10-29 16:01:55 +01:00
2014-02-12 14:34:32 +01:00
2014-02-12 14:34:32 +01:00
2014-02-12 14:34:32 +01:00
2014-05-16 15:42:07 +02:00
2014-02-12 14:34:32 +01:00
2014-04-01 14:28:55 +02:00
2014-03-20 15:29:27 +01:00
2013-09-04 10:38:37 +02:00
2013-07-18 14:59:19 +02:00
2014-01-23 10:35:21 +01:00
2014-02-12 14:34:32 +01:00
2014-05-16 15:42:07 +02:00
2014-02-12 14:34:32 +01:00
2014-02-12 14:34:32 +01:00
2013-09-03 16:26:19 +02:00
2013-09-03 16:26:19 +02:00
2014-05-16 15:42:07 +02:00