<br><br><div class="gmail_quote">On Sat, Mar 21, 2009 at 5:40 PM, John M McIntosh <span dir="ltr"><<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>></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've attached superceeds that?</blockquote><div><br></div><div>Yes. The old one doesn'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>
"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:"<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 = 'true' or: [ here = 'false' or: [ here = 'nil' ] ])<br>
ifTrue: [ ^ Compiler evaluate: self advance ].<br>
((selectorSoFar = 'primitive:error:') and: [hereType == #word]) ifTrue:<br>
[^self advance].<br>
^ self expected: 'Literal constant'<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 <<a href="mailto:beepeng86@yahoo.com" target="_blank">beepeng86@yahoo.com</a>> wrote:<br>
<br>
I'm trying to load Alien-core into my image, in Windows. It complaint about<br>
syntax error.<br>
<br>
Ccalloc: byteSize "<Integer> ^<Integer>"<br>
<primitive: 'primCalloc' error: Literal constant expected ->errorCode<br>
module: 'IA32ABI'><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>
<Parser-pragmaLiteral.st><br>
</blockquote><div><div></div><div class="h5">
<br>
--<br>
===========================================================================<br>
John M. McIntosh <<a href="mailto:johnmci@smalltalkconsulting.com" target="_blank">johnmci@smalltalkconsulting.com</a>><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>