<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>On 06/04/2020 21:40, Gedare Bloom wrote:<br>
</p>
<blockquote type="cite"
cite="mid:CAC82fA1A7CghSmn1BoR7uXzLD0wDj9BehGMKpVdsWsEEu48Hng@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">On Mon, Apr 6, 2020 at 11:57 AM Sebastian Huber
<a class="moz-txt-link-rfc2396E" href="mailto:sebastian.huber@embedded-brains.de" moz-do-not-send="true"><sebastian.huber@embedded-brains.de></a> wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre class="moz-quote-pre" wrap="">Update #3799.
---
cpukit/include/rtems/score/basedefs.h | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/cpukit/include/rtems/score/basedefs.h b/cpukit/include/rtems/score/basedefs.h
index 4589bea4aa..a2eb14a642 100644
--- a/cpukit/include/rtems/score/basedefs.h
+++ b/cpukit/include/rtems/score/basedefs.h
@@ -321,6 +321,19 @@
#define RTEMS_DECLARE_GLOBAL_SYMBOL( _name ) \
extern char _name[]
+/**
+ * @brief Constructs a symbol name.
+ *
+ * @param _name The user defined name of the symbol. The name must be a valid
+ * designator. On the name a macro expansion is performed.
+ */
+#if defined(__USER_LABEL_PREFIX__)
+ #define RTEMS_SYMBOL_NAME( _name ) RTEMS_XCONCAT( __USER_LABEL_PREFIX__, _name )
+#else
+ #define _RTEMS_SYMBOL_NAME( _name ) _name
+ #define RTEMS_SYMBOL_NAME( _name ) _RTEMS_SYMBOL_NAME( _name )
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Am just curious why there is _RTEMS_SYMBOL_NAME here and not in the other path
</pre>
</blockquote>
This is just to perform the macro expansion. In the other path it is
done by RTEMS_XCONCAT().
</body>
</html>