<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>This used to work in C51</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/22210/this-used-to-work-in-c51</link><description> 
I&amp;#39;m porting code from an 8051 to ARM. I have a string that shows
Model, Version, Compile Date &amp;amp; Time: 

 
#define ModelName &amp;quot;H&amp;quot;
#define FW_Version &amp;quot;1.04&amp;quot;
...
const char ModuleInfo[] = {&amp;quot;M2P &amp;quot; ModelName &amp;quot; v&amp;quot; FW_Version &amp;quot; &amp;quot; __DATE__ &amp;quot; @ &amp;quot; __TIME__};
</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: This used to work in C51</title><link>https://community.arm.com/thread/100532?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2008 09:59:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:859057ed-965d-452b-9753-96568f6e852b</guid><dc:creator>Pete S</dc:creator><description>&lt;p&gt;&lt;p&gt;
Ok, it works now. Thanks.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: This used to work in C51</title><link>https://community.arm.com/thread/88998?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2008 09:52:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2ef5e8bc-ed09-4fc2-8905-aed51bd1296c</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Should compile ok unless you have managed to add some invalid
character somewhere.&lt;/p&gt;

&lt;p&gt;
You can &lt;b&gt;not&lt;/b&gt; use any comma since you do not initialize an
array of arrays of characters or array of character pointers. The
compiler will glue together all string sections.&lt;/p&gt;

&lt;p&gt;
Note that there is no need for the {} around the
initialization.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: This used to work in C51</title><link>https://community.arm.com/thread/49729?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2008 09:30:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0ed7740d-ae18-46ea-aab9-d5d315977d1f</guid><dc:creator>Robert McNamara</dc:creator><description>&lt;p&gt;&lt;pre&gt;
#define ModelName &amp;quot;H&amp;quot;
#define FW_Version &amp;quot;1.04&amp;quot;

const char ModuleInfo[] = {&amp;quot;M2P &amp;quot; ModelName &amp;quot; v&amp;quot; FW_Version &amp;quot; &amp;quot; __DATE__ &amp;quot; @ &amp;quot; __TIME__};
printf(&amp;quot;%s\n&amp;quot;,ModuleInfo);
&lt;/pre&gt;

&lt;p&gt;
Compiles with no errors in my version of ARM compiler.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>