[rtems-central commit] spec: Update RTEMS_ZERO_LENGTH_ARRAY
Sebastian Huber
sebh at rtems.org
Fri Aug 7 08:09:49 UTC 2020
Module: rtems-central
Branch: master
Commit: 2ac3803d3b79eeb27bd062f7eab0e73617dce567
Changeset: http://git.rtems.org/rtems-central/commit/?id=2ac3803d3b79eeb27bd062f7eab0e73617dce567
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Aug 7 10:08:58 2020 +0200
spec: Update RTEMS_ZERO_LENGTH_ARRAY
---
spec/if/compiler/stdc-version.yml | 4 ++--
spec/if/rtems/basedefs/zero-length-array.yml | 5 ++++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/spec/if/compiler/stdc-version.yml b/spec/if/compiler/stdc-version.yml
index ac333d9..ef79dcf 100644
--- a/spec/if/compiler/stdc-version.yml
+++ b/spec/if/compiler/stdc-version.yml
@@ -2,10 +2,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: true
-interface-type: unspecified
+interface-type: unspecified-define
links:
- role: interface-placement
uid: container
name: __STDC_VERSION__
-reference: null
+reference: https://en.cppreference.com/w/c/preprocessor/replace
type: interface
diff --git a/spec/if/rtems/basedefs/zero-length-array.yml b/spec/if/rtems/basedefs/zero-length-array.yml
index bbc874e..24c23b4 100644
--- a/spec/if/rtems/basedefs/zero-length-array.yml
+++ b/spec/if/rtems/basedefs/zero-length-array.yml
@@ -5,7 +5,10 @@ copyrights:
- Copyright (C) 2014 embedded brains GmbH (http://www.embedded-brains.de)
definition:
default: '0'
- variants: []
+ variants:
+ - definition: null
+ enabled-by:
+ - ${../../compiler/stdc-version:/name} >= 199409L
description: |
Zero-length arrays are valid in C99 as flexible array members. C++11 does
not allow flexible array members. Use the GNU extension which is also
More information about the vc
mailing list