<br><br><div class="gmail_quote">On Sat, Mar 21, 2009 at 5:40 PM, John M McIntosh <span dir="ltr">&lt;<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Alien-Core has this, so is the one  you&#39;ve attached superceeds that?</blockquote><div><br></div><div>Yes.  The old one doesn&#39;t support primitive:moduleName:error: et al.</div><div><br></div><div>(apologies)</div><div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">pragmaLiteral: selectorSoFar<br>
        &quot;Read a pragma literal.  As a nicety we allow a variable name (rather<br>
         than a literal string) as the second argument to primitive:error:&quot;<br>
<br>
        (hereType == #string or: [ hereType == #literal or: [ hereType == #number ] ])<br>
                ifTrue: [ ^ self advance ].<br>
        (here == $# and: [ tokenType == #word ])<br>
                ifTrue: [ ^ self advance ].<br>
        (here == #- and: [ tokenType == #number ])<br>
                ifTrue: [ ^ (self advance; advance) negated ].<br>
        (here = &#39;true&#39; or: [ here = &#39;false&#39; or: [ here = &#39;nil&#39; ] ])<br>
                ifTrue: [ ^ Compiler evaluate: self advance ].<br>
        ((selectorSoFar = &#39;primitive:error:&#39;) and: [hereType == #word]) ifTrue:<br>
                [^self advance].<br>
        ^ self expected: &#39;Literal constant&#39;<div><div></div><div class="h5"><br>
<br>
<br>
On 21-Mar-09, at 2:19 PM, Eliot Miranda wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi Ang,<br>
<br>
On Sat, Mar 21, 2009 at 6:16 AM, Ang Beepeng &lt;<a href="mailto:beepeng86@yahoo.com" target="_blank">beepeng86@yahoo.com</a>&gt; wrote:<br>
<br>
I&#39;m trying to load Alien-core into my image, in Windows. It complaint about<br>
syntax error.<br>
<br>
Ccalloc: byteSize &quot;&lt;Integer&gt; ^&lt;Integer&gt;&quot;<br>
       &lt;primitive: &#39;primCalloc&#39; error: Literal constant expected -&gt;errorCode<br>
module: &#39;IA32ABI&#39;&gt;<br>
       ^self primitiveFailed<br>
<br>
You are missing some pragma support.  The relevant method in my image (unofficial) that accepts a variable name in that position is attached.<br>
<br>
HTH<br>
<br>
Eliot<br>
<br>
<br>
Similar error occur to many other methods. What should I do to correct it?<br>
<br>
Thanks.<br>
<br>
Ang Beepeng<br>
--<br>
View this message in context: <a href="http://www.nabble.com/Alien-FFI-tp22635925p22635925.html" target="_blank">http://www.nabble.com/Alien-FFI-tp22635925p22635925.html</a><br>
Sent from the Squeak - Dev mailing list archive at Nabble.com.<br>
<br>
<br>
<br></div></div>
&lt;Parser-pragmaLiteral.st&gt;<br>
</blockquote><div><div></div><div class="h5">
<br>
--<br>
===========================================================================<br>
John M. McIntosh &lt;<a href="mailto:johnmci@smalltalkconsulting.com" target="_blank">johnmci@smalltalkconsulting.com</a>&gt;<br>
Corporate Smalltalk Consulting Ltd.  <a href="http://www.smalltalkconsulting.com" target="_blank">http://www.smalltalkconsulting.com</a><br>
===========================================================================<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br>