Hello, again,<br><br>I've added support for <span style="font-family: courier new,monospace;">:out</span>, <span style="font-family: courier new,monospace;">:in-out</span> and <span style="font-family: courier new,monospace;">:copy</span> direction arguments except for defcfun with &rest args. The patch is attached, it includes some tests. Anyone may feel free to add more tests if it is convenient.<br>
<br>For defcfun with &rest arguments, I still need to test so I didn't include it in my patch. I'll do that tomorrow.<br><br>Changing subject, I noted that, <b>without</b> my changes, there are 4 unexpected failures with cffi in my system (and 2 expected).<br>
<br>The tests FUNCALL.VARARGS.DOUBLE, DEFCFUN.VARARGS.FLOAT, DEFCFUN.VARARGS.DOUBLE fail because of localization issues. Here in Brazil, we write "3,14" instead of "3.14" and sprintf takes that into account. Not a big problem, though, just notifying.<br>

<br>The test DEFCFUN.BFF.2 fails, I suspect it is because of the precision of doubles. The function returns the first, the second is expected.<br><br>7758614624042983568<br>7758614658402721936<br><br>The expected failures are STRING.ENCODING.UTF-16.BASIC and STRING.ENCODINGS.ALL.BASIC.<br>

<br>SBCL 1.0.40, 32-bit Ubuntu.<br><br>Now, except for those tests that were already failing, my changes didn't fail even a single one of them :)<br><br>Gustavo.<br>