2010/3/30 Alex Queiroz <span dir="ltr"><<a href="mailto:asandroq@gmail.com">asandroq@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hallo, </blockquote>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
2010/3/30 Mikael <<a href="mailto:mikael.trash@gmail.com">mikael.trash@gmail.com</a>>:<br>
<div class="im">> You do this, by declaring the passed u8vector as a scheme-object in the<br>
> c-lambda definition.<br>
> The memory pointer to the u8vector's contents in the C code is resolved by<br>
>      void *u8vectorptr =<br>
> ___CAST(void*,&___FETCH_U8(___BODY(theu8vectorschemeobjectvariable),___INT(0)));<br>
> Remember that the pointer is only to be kept until the next return to<br>
> Scheme.<br>
<br>
</div>     AFAIK you do not need the last ___INT().<br>
<br>
Cheers,<br>
<font color="#888888">--<br>
-alex<br>
@asandroq<br>
<a href="http://www.ventonegro.org/" target="_blank">http://www.ventonegro.org/</a><br>
</font></blockquote><div><br></div><div><br></div><div>It seems that ___FECTH__U8 needs two arguments, what do you mean by not needed then?</div><div>With ___INT(0) it works fine, but is interesting if there is a shorter way to express the same also.</div>

<div><br></div><div>Thanks :)</div><div><br></div><div>Álvaro Castro-Castilla<br></div>