qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 14/26] qapi2texi: add 'If:' condition to struct memb


From: Marc-André Lureau
Subject: [Qemu-devel] [PATCH 14/26] qapi2texi: add 'If:' condition to struct members
Date: Thu, 27 Jul 2017 17:41:14 +0200

Signed-off-by: Marc-André Lureau <address@hidden>
---
 scripts/qapi2texi.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/qapi2texi.py b/scripts/qapi2texi.py
index 340a55c30d..b2c9a9f335 100755
--- a/scripts/qapi2texi.py
+++ b/scripts/qapi2texi.py
@@ -137,10 +137,11 @@ def texi_enum_value(value):
 def texi_member(member, suffix=''):
     """Format a table of members item for an object type member"""
     typ = member.type.doc_type()
-    return '@item @code{%s%s}%s%s\n' % (
+    return '@item @code{%s%s}%s%s%s\n' % (
         member.name,
         ': %s' % typ if typ else '',
         ' (optional)' if member.optional else '',
+        'address@hidden:} @code{%s}\n' % member.ifcond if member.ifcond else 
'',
         suffix)
 
 
-- 
2.14.0.rc0.1.g40ca67566




reply via email to

[Prev in Thread] Current Thread [Next in Thread]