qapi: Avoid generating C identifier 'linux'
commitfd89c8ab091bf7faeea04bef51d4296a53a35279
authorzhenwei pi <pizhenwei@bytedance.com>
Thu, 7 Jul 2022 00:56:01 +0000 (7 08:56 +0800)
committerKonstantin Kostiuk <kkostiuk@redhat.com>
Wed, 13 Jul 2022 09:19:18 +0000 (13 12:19 +0300)
treea1871b809c1a7ffb2a3b62fbb5fb789aa89c15f2
parent1d02ef4b61d083d3a5d298165a01385ee4cf9121
qapi: Avoid generating C identifier 'linux'

'linux' is not usable as identifier, because C compilers targeting
Linux predefine it as a macro expanding to 1.  Add it to
@polluted_words. 'unix' is already there.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id: <20220707005602.696557-2-pizhenwei@bytedance.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
scripts/qapi/common.py