Bad C code generated for built-in macro

Wolfgang Jansen <[email protected]> Fri, 28 Nov 2014 16:41:36 +0100
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------070101060900050008050206
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by smtpa.mediabeam.com id
	sASFfZTw021321

Hi Eric,

the Eiffel compilation of the attached micro class by GEC
works very well but C compilation fails because of imbalanced
parentheses. In Eiffel, this is a built-in macro,
other macro externals are treated correctly.

BTW, macro 'GE_real_64_positive_infinity' is defined
in $GOBO/tool/gec/runtime/c/ge_real.h as
'GE_real_64_from_bits(GE_nat64(0x7FF0000000000000))'.
What about defining it as 'INFINITY' coming from math.h?

With best regards
Wolfgang

--=20
Dr. Wolfgang Jansen
Lauenburger Stra=C3=9Fe 40
D-12169 Berlin

Tel: (+49) 0172 40 86 916
e-mail: [email protected]


--------------070101060900050008050206
Content-Type: text/x-eiffel;
 name="inf.e"
Content-Disposition: attachment;
 filename="inf.e"
Content-Transfer-Encoding: 7bit

class INF

create
	make

feature 

	make
		local
			x: REAL_64
		do
			x := x.positive_infinity
		end

end


--------------070101060900050008050206
Content-Type: text/xml;
 name="inf.xace"
Content-Disposition: attachment;
 filename="inf.xace"
Content-Transfer-Encoding: 7bit

<?xml version="1.0"?>

<system name="inf">
	<root class="INF" creation="make"/>
	<cluster name="home" location="${HOME}/tmp">
	</cluster>
	<mount location="${GOBO}/library/kernel.xace"/>
</system>

--------------070101060900050008050206
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
--------------070101060900050008050206
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gobo-eiffel-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gobo-eiffel-develop

--------------070101060900050008050206--