* [RFC PATCH] docs/devel: update C standard to C11
@ 2021-12-15 15:20 Alex Bennée
2021-12-15 15:38 ` Daniel P. Berrangé
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Alex Bennée @ 2021-12-15 15:20 UTC (permalink / raw)
To: qemu-devel; +Cc: Alex Bennée, peter.maydell, richard.henderson
Since 8a9d3d5640 (configure: Use -std=gnu11) we have allowed C11 code
so lets reflect that in the style guide.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
docs/devel/style.rst | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/devel/style.rst b/docs/devel/style.rst
index d7315f45f4..a80abcd0c7 100644
--- a/docs/devel/style.rst
+++ b/docs/devel/style.rst
@@ -486,11 +486,11 @@ of arguments.
C standard, implementation defined and undefined behaviors
==========================================================
-C code in QEMU should be written to the C99 language specification. A copy
-of the final version of the C99 standard with corrigenda TC1, TC2, and TC3
-included, formatted as a draft, can be downloaded from:
+C code in QEMU should be written to the C11 language specification. A
+copy of the final version of the C11 standard formatted as a draft,
+can be downloaded from:
- `<http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf>`_
+ `<http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1548.pdf>`_
The C language specification defines regions of undefined behavior and
implementation defined behavior (to give compiler authors enough leeway to
--
2.30.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [RFC PATCH] docs/devel: update C standard to C11
2021-12-15 15:20 [RFC PATCH] docs/devel: update C standard to C11 Alex Bennée
@ 2021-12-15 15:38 ` Daniel P. Berrangé
2021-12-15 15:46 ` Philippe Mathieu-Daudé
2021-12-15 17:52 ` Richard Henderson
2 siblings, 0 replies; 4+ messages in thread
From: Daniel P. Berrangé @ 2021-12-15 15:38 UTC (permalink / raw)
To: Alex Bennée; +Cc: peter.maydell, richard.henderson, qemu-devel
On Wed, Dec 15, 2021 at 03:20:55PM +0000, Alex Bennée wrote:
> Since 8a9d3d5640 (configure: Use -std=gnu11) we have allowed C11 code
> so lets reflect that in the style guide.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> docs/devel/style.rst | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC PATCH] docs/devel: update C standard to C11
2021-12-15 15:20 [RFC PATCH] docs/devel: update C standard to C11 Alex Bennée
2021-12-15 15:38 ` Daniel P. Berrangé
@ 2021-12-15 15:46 ` Philippe Mathieu-Daudé
2021-12-15 17:52 ` Richard Henderson
2 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-12-15 15:46 UTC (permalink / raw)
To: Alex Bennée, qemu-devel; +Cc: peter.maydell, richard.henderson
On 12/15/21 16:20, Alex Bennée wrote:
> Since 8a9d3d5640 (configure: Use -std=gnu11) we have allowed C11 code
> so lets reflect that in the style guide.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> docs/devel/style.rst | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC PATCH] docs/devel: update C standard to C11
2021-12-15 15:20 [RFC PATCH] docs/devel: update C standard to C11 Alex Bennée
2021-12-15 15:38 ` Daniel P. Berrangé
2021-12-15 15:46 ` Philippe Mathieu-Daudé
@ 2021-12-15 17:52 ` Richard Henderson
2 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2021-12-15 17:52 UTC (permalink / raw)
To: Alex Bennée, qemu-devel; +Cc: peter.maydell
On 12/15/21 7:20 AM, Alex Bennée wrote:
> Since 8a9d3d5640 (configure: Use -std=gnu11) we have allowed C11 code
> so lets reflect that in the style guide.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> docs/devel/style.rst | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/docs/devel/style.rst b/docs/devel/style.rst
> index d7315f45f4..a80abcd0c7 100644
> --- a/docs/devel/style.rst
> +++ b/docs/devel/style.rst
> @@ -486,11 +486,11 @@ of arguments.
> C standard, implementation defined and undefined behaviors
> ==========================================================
>
> -C code in QEMU should be written to the C99 language specification. A copy
> -of the final version of the C99 standard with corrigenda TC1, TC2, and TC3
> -included, formatted as a draft, can be downloaded from:
> +C code in QEMU should be written to the C11 language specification. A
> +copy of the final version of the C11 standard formatted as a draft,
> +can be downloaded from:
>
> - `<http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf>`_
> + `<http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1548.pdf>`_
>
> The C language specification defines regions of undefined behavior and
> implementation defined behavior (to give compiler authors enough leeway to
Oops, yes.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-12-15 19:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-15 15:20 [RFC PATCH] docs/devel: update C standard to C11 Alex Bennée
2021-12-15 15:38 ` Daniel P. Berrangé
2021-12-15 15:46 ` Philippe Mathieu-Daudé
2021-12-15 17:52 ` Richard Henderson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.