Markus Armbruster
1c236ba531
qapi: Avoid unnecessary use of enum lookup table's sentinel
...
Currently, the FOO_lookup[] generated for QAPI enum types are
terminated by a NULL sentinel.
A future patch will generate enums with "holes". NULL-termination
will cease to work then.
To prepare for that, replace "have we reached the sentinel?"
predicates by "have we reached the FOO__MAX value?" predicates.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1503564371-26090-12-git-send-email-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2017-09-04 13:09:13 +02:00
..
2015-05-05 10:48:22 +02:00
2017-06-29 15:07:16 +01:00
2016-06-10 11:13:59 +02:00
2017-06-22 13:18:11 +01:00
2017-07-27 14:23:09 +02:00
2017-01-10 08:14:20 +01:00
2017-08-31 12:29:07 +02:00
2017-05-12 12:02:48 +02:00
2017-06-21 14:23:16 +02:00
2017-06-21 14:23:16 +02:00
2017-06-21 14:23:16 +02:00
2017-06-21 14:23:16 +02:00
2017-06-02 11:33:52 +04:00
2017-07-28 12:35:40 +02:00
2017-09-04 13:09:13 +02:00
2017-07-27 14:23:09 +02:00
2017-06-23 11:49:44 +02:00
2017-06-23 11:47:59 +02:00
2017-07-27 14:24:05 +02:00
2017-05-19 10:46:00 +02:00
2016-06-20 16:38:13 +02:00
2016-06-03 08:23:26 +02:00
2017-06-21 14:23:16 +02:00
2016-02-04 17:01:04 +00:00
2014-09-16 08:07:05 +02:00
2017-06-23 11:50:46 +02:00
2014-03-05 09:52:05 +01:00
2016-06-07 18:19:24 +03:00
2016-07-12 16:20:46 +02:00
2017-05-23 13:28:17 +02:00
2016-05-12 16:41:46 +02:00
2017-06-22 11:34:39 +01:00
2017-06-14 09:52:35 +02:00
2017-07-28 12:35:40 +02:00
2017-07-31 13:12:53 +03:00
2017-07-27 14:23:09 +02:00
2017-05-09 09:14:40 +02:00
2016-07-12 16:20:46 +02:00
2017-01-23 15:32:18 +00:00
2016-07-12 16:20:46 +02:00
2016-02-04 17:01:04 +00:00
2017-08-31 12:29:07 +02:00
2016-07-12 16:19:16 +02:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2017-05-12 12:34:31 +02:00
2016-07-12 16:19:16 +02:00
2016-02-04 17:01:04 +00:00
2016-07-12 16:19:16 +02:00
2017-02-08 14:59:36 +01:00
2017-02-08 14:59:36 +01:00
2016-06-07 18:19:24 +03:00
2016-02-23 12:43:05 +00:00
2017-01-23 15:32:18 +00:00
2016-07-12 16:20:46 +02:00
2017-08-31 12:29:07 +02:00
2017-02-08 14:59:37 +01:00
2016-02-04 17:01:04 +00:00