<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/mcpp/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/mcpp/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 05 Nov 2019 13:13:39 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mcpp/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>MCPP bug: conditional operator expression</title><link>https://sourceforge.net/p/mcpp/discussion/565342/thread/ef669864/?limit=25#7fb8</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Just in case anyone else finds this via a search engine, the bug is a typo in the eval_signed function in mcpp_eval.c. The line:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;   &lt;span class="n"&gt;v1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="c1"&gt;--*valpp)-&amp;gt;val ? v1 : v2;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;should read&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;   &lt;span class="n"&gt;valp&lt;/span&gt;&lt;span class="c1"&gt;--; v1 = (valp-&amp;gt;val) ? v1 : v2;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;because later in the code the value of valpp is updated from valp. The eval_unsigned function has this right already.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eric Smith</dc:creator><pubDate>Tue, 05 Nov 2019 13:13:39 -0000</pubDate><guid>https://sourceforge.netc7cb932000d7423ba5e6d38c3edce7b78219994c</guid></item><item><title>Retaining the #define statements</title><link>https://sourceforge.net/p/mcpp/discussion/565342/thread/5caf16afbe/?limit=25#1545</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am using mcpp to scan through the source files to find whichever defines available and then just enable those lines of code from source depending upon the defines. This is working fine using mcpp. But for some other purposes, I need few of the defines to be intact without changed by mcpp, because those defines I will be using for some other processes I do in the code. Is it possible in mcpp. Please advise me how to do ?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mohamed Fysal</dc:creator><pubDate>Mon, 03 Dec 2018 04:12:08 -0000</pubDate><guid>https://sourceforge.net77318bf8e2bd32b1d7bf926f64fa22eb97551a3d</guid></item><item><title>-Dunix commandline option does not define identifier unix as 1</title><link>https://sourceforge.net/p/mcpp/discussion/565342/thread/81618a88/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;mcpp -Dunix x.c&lt;/p&gt;
&lt;p&gt;x.c is like following&lt;/p&gt;
&lt;h1 id="ifdef-unix"&gt;ifdef unix&lt;/h1&gt;
&lt;p&gt;xxxx&lt;/p&gt;
&lt;h1 id="endif"&gt;endif&lt;/h1&gt;
&lt;p&gt;is not expanded to "xxxx" because unix is not evaluated as 1.&lt;/p&gt;
&lt;p&gt;Which is correct the specified commandline option overwrites the predefined macro value or not.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zunzunzun</dc:creator><pubDate>Tue, 12 Jul 2016 06:56:13 -0000</pubDate><guid>https://sourceforge.net854010905e0314eba53c1695a77be33e49130ed1</guid></item></channel></rss>