From 49bd87996fa1c1068ec1703b0e0b544e74741a74 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 14 Dec 2020 12:02:31 +0100 Subject: spec: Add stringification of argument lists --- spec/rtems/basedefs/if/string.yml | 10 +++++----- spec/rtems/basedefs/if/xstring.yml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/spec/rtems/basedefs/if/string.yml b/spec/rtems/basedefs/if/string.yml index 32e1cb49..925fb8bf 100644 --- a/spec/rtems/basedefs/if/string.yml +++ b/spec/rtems/basedefs/if/string.yml @@ -1,10 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause brief: | - Stringifies _x without expanding. + Stringifies the arguments without expanding them. copyrights: - Copyright (C) 2015 embedded brains GmbH (http://www.embedded-brains.de) definition: - default: '#${.:/params[0]/name}' + default: '#__VA_ARGS__' variants: [] description: null enabled-by: true @@ -19,11 +19,11 @@ name: RTEMS_STRING notes: null params: - description: | - is the token to stringify. + are the arguments to stringify. dir: null - name: _x + name: ... return: return: | - Returns the stringification of the token _x. + Returns the stringification of the arguments. return-values: [] type: interface diff --git a/spec/rtems/basedefs/if/xstring.yml b/spec/rtems/basedefs/if/xstring.yml index 0218a29f..8dc7bcc2 100644 --- a/spec/rtems/basedefs/if/xstring.yml +++ b/spec/rtems/basedefs/if/xstring.yml @@ -1,10 +1,10 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause brief: | - Stringifies the expansion of _x. + Stringifies the expansion of the arguments. copyrights: - Copyright (C) 2015 embedded brains GmbH (http://www.embedded-brains.de) definition: - default: ${string:/name}( ${.:/params[0]/name} ) + default: ${string:/name}( __VA_ARGS__ ) variants: [] description: null enabled-by: true @@ -19,11 +19,11 @@ name: RTEMS_XSTRING notes: null params: - description: | - is the token expand and stringify. + are the arguments to expand and stringify. dir: null - name: _x + name: ... return: return: | - Returns the stringification of the expansion of token _x. + Returns the stringification of the expansion of the arguments. return-values: [] type: interface -- cgit v1.2.3