Aaron Gray | 28 Apr 04:48

Re: idc for windows platform



On Mon, Apr 28, 2008 at 2:55 AM, Aaron Gray <aaronngray.lists-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
On Mon, Apr 28, 2008 at 2:48 AM, Michael FIG <michael-y8U0i/lyZOM@public.gmane.org> wrote:
Hi,

"Aaron Gray" <aaronngray.lists-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> writes:

>       va_start( ap, rcv);
>       _c = (struct __closure *) _libid->bind( msg, _r);
>       ret = (_c->method)( (oop) _c, _r, _r, ap);
>       va_end( ap);

This changes the calling convention... the "ap" argument does not pass
the remaining arguments on the stack, it passes a pointer to them, so
they wouldn't be usable as named parameters.
Ah, should have noticed that :)
 
Oh, well have to use preprocessor then :(
 
Just as well, the code generation is crap, and it does not get inlined either, vaargs and inlining do not mix on VS 2008. Shame as I wanted to use it to pass tuples :(
 
Aaron
 
<div>
<br><br><div class="gmail_quote">On Mon, Apr 28, 2008 at 2:55 AM, Aaron Gray &lt;<a href="mailto:aaronngray.lists@...">aaronngray.lists@...</a>&gt; wrote:<br><blockquote class="gmail_quote">
<div class="gmail_quote">
<div class="Ih2E3d">On Mon, Apr 28, 2008 at 2:48 AM, Michael FIG &lt;<a href="mailto:michael@..." target="_blank">michael@...</a>&gt; wrote:<br><blockquote class="gmail_quote">Hi,<br><div>
<br>"Aaron Gray" &lt;<a href="mailto:aaronngray.lists@..." target="_blank">aaronngray.lists@...</a>&gt; writes:<br><br>&gt; &nbsp; &nbsp; &nbsp; va_start( ap, rcv);<br>&gt; &nbsp; &nbsp; &nbsp; _c = (struct __closure *) _libid-&gt;bind( msg, _r);<br>
&gt; &nbsp; &nbsp; &nbsp; ret = (_c-&gt;method)( (oop) _c, _r, _r, ap);<br>&gt; &nbsp; &nbsp; &nbsp; va_end( ap);<br><br>
</div>This changes the calling convention... the "ap" argument does not pass<br>the remaining arguments on the stack, it passes a pointer to them, so<br>
they wouldn't be usable as named parameters.<br>
</blockquote>
</div>
<div>Ah, should have noticed that&nbsp;:)</div>
<div>&nbsp;</div>
<div>Oh, well have to use preprocessor then :(</div>
</div>
</blockquote>
<div>&nbsp;</div>
<div>Just as well, the code generation is crap, and it does not get inlined either, vaargs and inlining do not mix on VS 2008. Shame as I wanted to use it to pass tuples :(</div>
<div>&nbsp;</div>
<div>Aaron</div>
<div>&nbsp;</div>
</div>
</div>

Gmane