[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 9/9] qapi: make 'if' condition strings simple identifiers
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v5 9/9] qapi: make 'if' condition strings simple identifiers |
Date: |
Fri, 18 Jun 2021 11:36:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
marcandre.lureau@redhat.com writes:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Change the 'if' condition strings to be C-agnostic and be simple
> identifiers.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
> Tested-by: John Snow <jsnow@redhat.com>
[...]
> diff --git a/tests/qapi-schema/doc-good.txt b/tests/qapi-schema/doc-good.txt
> index 726727af74..27b7ce8799 100644
> --- a/tests/qapi-schema/doc-good.txt
> +++ b/tests/qapi-schema/doc-good.txt
> @@ -43,7 +43,7 @@ Example:
> Values
> ~~~~~~
>
> -"one" (**If: **"defined(IFONE)")
> +"one" (**If: **"IFONE")
Preexisting: the text generated for conditionals is crap. Your patch
doesn't make it any worse.
> The _one_ {and only}
>
> "two"
> @@ -62,7 +62,7 @@ Features
> If
> ~~
>
> -"defined(IFCOND)"
> +"IFCOND"
>
>
> "Base" (Object)
> @@ -87,7 +87,7 @@ Another paragraph (but no "var": line)
> Members
> ~~~~~~~
>
> -"var1": "string" (**If: **"defined(IFSTR)")
> +"var1": "string" (**If: **"IFSTR")
> Not documented
>
>
[...]
- Re: [PATCH v5 3/9] qapi: make gen_if/gen_endif take a simple string, (continued)
[PATCH v5 4/9] qapi: start building an 'if' predicate tree, marcandre . lureau, 2021/06/08
[PATCH v5 5/9] qapi: introduce IfPredicateList and IfAny, marcandre . lureau, 2021/06/08
[PATCH v5 6/9] qapi: add IfNot, marcandre . lureau, 2021/06/08
[PATCH v5 7/9] qapi: normalize 'if' condition to IfPredicate tree, marcandre . lureau, 2021/06/08
[PATCH v5 8/9] qapi: convert 'if' C-expressions to the new syntax tree, marcandre . lureau, 2021/06/08
[PATCH v5 9/9] qapi: make 'if' condition strings simple identifiers, marcandre . lureau, 2021/06/08
- Re: [PATCH v5 9/9] qapi: make 'if' condition strings simple identifiers,
Markus Armbruster <=
Re: [PATCH v5 0/9] qapi: untie 'if' conditions from C preprocessor, Markus Armbruster, 2021/06/15