Re: Bad C code generated for built-in macro

Eric Bezault <[email protected]> Sun, 30 Nov 2014 23:28:26 +0100
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
Hi Wolfgang,

> 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.

Thank you for this bug report. It's now fixed in github.

> 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?

I'm using the same definition as in EiffelStudio.
This limits the risk for incompatibilities.

BTW, did you make an announcement of your Gobo debugger in Google+:
https://plus.google.com/communities/109001715580721282898

-- 
Eric Bezault
mailto:[email protected]
http://www.gobosoft.com

------------------------------------------------------------------------------
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