[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squeak-vm-dev
Subject:    [Vm-dev] Problem compiling SqueakFFI Plugin
From:       Javier_Pimás <elpochodelagente () gmail ! com>
Date:       2018-03-31 21:48:26
Message-ID: CAAYkY5RuoSFXxQQ-DJUXCn4z-7F6h3hinBBbLc6KKP9Y+LqxVg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

 
[Attachment #3 (multipart/alternative)]


when generating the squeakffi plugin I get different sources than the ones
in src/plugins dir. Mine generate a compiler error, because isImmediate is
redefined, any idea?

the original src/X64SysVFFIPlugin.c contains (~ line 460):

#if !defined(isImmediate)
#if VM_PROXY_MAJOR > 1 || (VM_PROXY_MAJOR == 1 && VM_PROXY_MINOR >= 13)
extern sqInt isImmediate(sqInt anObject);
#else
# define isImmediate(anObject) 0
#endif
#endif


while mine gets:

#if VM_PROXY_MAJOR > 1 || (VM_PROXY_MAJOR == 1 && VM_PROXY_MINOR >= 13)
extern sqInt isImmediate(sqInt anObject);
#else
# define isImmediate(anObject) 0
#endif
#if !defined(isImmediate)
#endif


Cheers,
Pocho

-- 
Javier Pimás
Ciudad de Buenos Aires

[Attachment #6 (text/html)]

<div dir="ltr"><div>when generating the squeakffi plugin I get different sources than \
the ones in src/plugins dir. Mine generate a compiler error, because isImmediate is \
redefined, any idea?</div><div><br></div><div>the original src/X64SysVFFIPlugin.c \
contains (~ line 460):</div><div><br></div><div>#if \
!defined(isImmediate)</div><div>#if VM_PROXY_MAJOR &gt; 1 || (VM_PROXY_MAJOR == 1 \
&amp;&amp; VM_PROXY_MINOR &gt;= 13)</div><div>extern sqInt isImmediate(sqInt \
anObject);</div><div>#else</div><div># define isImmediate(anObject) \
0</div><div>#endif</div><div>#endif</div><div><br></div><div><br></div><div>while \
mine gets:</div><div><br></div><div><div>#if VM_PROXY_MAJOR &gt; 1 || (VM_PROXY_MAJOR \
== 1 &amp;&amp; VM_PROXY_MINOR &gt;= 13)</div><div>extern sqInt isImmediate(sqInt \
anObject);</div><div>#else</div><div># define isImmediate(anObject) \
0</div><div>#endif</div><div>#if \
!defined(isImmediate)</div><div>#endif</div></div><div><br></div><div><br></div><div>Cheers,</div><div>Pocho</div><div><br></div>-- \
<br><div class="gmail_signature"><div dir="ltr">Javier Pimás<br>Ciudad de Buenos \
Aires</div></div> </div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic