Re: Re: GEC Compilation of Externals

Eric Bezault <ericb-D6Qt/9opevxWk0Htik3J/[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.general
Organization Gobo
Message-ID <[email protected]>
Franck Arnaud wrote:
> Eric Bezault:
>>I think ECMA says it should be:
>>
>>  sizeof: INTEGER is
>>      -- Size to allocate (in bytes)
>>    external
>>      "C inline use <windows.h>"
>>    alias
>>      "return sizeof (struct _COMMTIMEOUTS);"
>>    end
> 
> 
> Could gec generate "return ALIAS-CONTENT;" if there's 
> no 'return' in the alias content. Then it can be both 
> ECMA- and legacy 'compliant'. (With a warning for the 
> legacy case.)

I'll do that.

> It is nasty but the heuristics should work nearly all 
> the time: I can't think of a useful counter-example where 
> there'd be no return in the alias and you do not want 
> one generated (well there might be a counter example 
> I did not think of...).

The 'return' can be hidden in a macro.

-- 
Eric Bezault
mailto:ericb-D6Qt/9opevxWk0Htik3J/[email protected]
http://www.gobosoft.com



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

To Post a message, send it to:   [email protected]
To Unsubscribe, send a blank message to: gobo-eiffel-unsubscribe-B11MqFFcr06IwRZHo2/[email protected] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gobo-eiffel/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.