<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-01-10 13:14 GMT+01:00 Levente Uzonyi <span dir="ltr">&lt;<a href="mailto:leves@caesar.elte.hu" target="_blank">leves@caesar.elte.hu</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On Sun, 10 Jan 2016, Nicolai Hess wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
pharo fogbugz issue: 17359 MessageNotUnderstood: receiver of &quot;keywords&quot; is nil<br>
<br>
<br>
is this valid pragma syntax:<br>
<br>
    &lt;apicall: bool &#39;SetCursorPos&#39; (long long) module: &#39;user32.dll&#39;&gt;<br>
</blockquote>
<br></span>
This is not a pragma, but the special syntax used by FFI. AFAIK it predates pragmas.<span class=""><br></span></blockquote><div><br></div><div>Ah, ok.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
our (pharo) parser can not parse this (does not recognizes the<br>
&quot;selector parts&quot; (apicall:module:) right)<br>
<br>
Any recommendations how to fix this<br>
- fix RBParser or<br>
- change this pragma, for example, like this<br>
  &lt;apicall: #(bool SetCursorPos (long long)) module: &#39;user32.dll&#39;&gt;<br>
</blockquote>
<br></span>
There&#39;s nothing to fix here. Either you change your parser, compiler and decompiler to support this syntax, but knowing how things work in Pharo, this is not an option</blockquote><div><br></div><div>Why is this not an option?<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">, or change the methods with these callouts, introducing another incompatibility between Pharo and the rest, to use pragmas and create a custom parser, compiler and decompiler to be able to compile FFI callouts into methods when such pragmas are present.<br></blockquote><div><br></div><div>As we now included this FFI-Examples, where this is used, I would like to find a way that works in both, pharo and squeak.<br><br></div><div>@esteban<br></div><div>is this already supported by &quot;our&quot; FFI and just not by the parser used for syntax highlighting or wasn&#39;t this package supposed to be in Pharo ?<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Levente<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
nicolai<br>
<br>
</blockquote>
<br><br>
<br></blockquote></div><br></div></div>