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
..
2017-06-22 13:18:11 +01:00
2017-07-27 14:23:09 +02:00
2017-08-31 12:29:07 +02:00
2017-06-02 11:33:52 +04:00
2017-06-23 11:47:59 +02:00
2016-06-03 08:23:26 +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
2017-06-22 11:34:39 +01:00
2017-07-27 14:23:09 +02:00
2016-02-04 17:01:04 +00:00
2017-08-31 12:29:07 +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-02-23 12:43:05 +00:00
2017-08-31 12:29:07 +02:00
2016-02-04 17:01:04 +00:00