<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Ticket search results</title><link>https://forge.codesys.com/tol/c2iec/tickets/</link><description>You searched for !status:wont-fix &amp;&amp; !status:closed</description><language>en</language><lastBuildDate>Mon, 22 Apr 2024 07:57:34 -0000</lastBuildDate><item><title>the web version page does not exist</title><link>https://forge.codesys.com/tol/c2iec/tickets/4/</link><description>The web version URL mentioned on the home page of this project https://forge.codesys.com/download/tol,c2iec,code.git/example.html throws 404.

Is there a different functional URL where I could try?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tib0r</dc:creator><pubDate>Mon, 22 Apr 2024 07:57:34 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com/tol/c2iec/tickets/4/</guid></item><item><title>Unary operators are not working</title><link>https://forge.codesys.com/tol/c2iec/tickets/3/</link><description>CODESYS doesn't like the brackets around unary operators when they are not used within another expression.
So, while this works:
~~~
i = ++i;
i := (i:=i+1);
~~~
This doesn't:
~~~
++i;
(i:=i+1);
~~~

It's even worse for i++, as I was using a trick there to decrement the resulting value after the expression, which is sadly not possible.

Full example:
~~~
int i;
int a()
{
    i = ++i;
    i++;
    ++i;
}
~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ingo</dc:creator><pubDate>Mon, 06 Jul 2020 16:20:22 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com/tol/c2iec/tickets/3/</guid></item><item><title>IF statement is missing a THEN</title><link>https://forge.codesys.com/tol/c2iec/tickets/2/</link><description>~~~
int i;
int a()
{
if (i &lt; 0) return;
}
~~~

results in:
~~~
i: DINT;
FUNCTION a:DINT;

IF i &lt; 0
 RETURN;

END_IF
~~~

The "THEN" keyword is missing after the if-expression.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ingo</dc:creator><pubDate>Tue, 30 Jun 2020 14:27:35 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com/tol/c2iec/tickets/2/</guid></item><item><title>invalid syntax in the conversion of for-loops</title><link>https://forge.codesys.com/tol/c2iec/tickets/1/</link><description>~~~
int i;
int a()
{
for(i = 0; i &lt; 2; i++) return;
}
~~~

results in:
~~~

i: DINT;
FUNCTION a:DINT;
i := 0;

WHILE i &lt; 2;
 DO
 RETURN;

((i:=i+1)-1);
END_WHILE
~~~

The semicolon after the while expression is invalid.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ingo</dc:creator><pubDate>Tue, 30 Jun 2020 14:24:13 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com/tol/c2iec/tickets/1/</guid></item></channel></rss>