Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » swt source code Library.java, IS_64
swt source code Library.java, IS_64 [message #1739847] Fri, 05 August 2016 03:49 Go to next message
chen zero is currently offline chen zeroFriend
Messages: 9
Registered: July 2009
Junior Member
Hello,
in the latest swt source code, (clone from:
git clone git://git.eclipse.org/gitroot/platform/eclipse.platform.swt.git)

org/eclipse/swt/internal/Library.java
in about line 45,
static final boolean IS_64 = longConst() == (long /*int*/)longConst();

I am really confused about the above line,
whether IS_64 will ALWAYS true ?

Thanks!
chenzero
Re: swt source code Library.java, IS_64 [message #1739855 is a reply to message #1739847] Fri, 05 August 2016 04:53 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 693
Registered: January 2012
Senior Member

SWT stores its code in 64-bit form and uses some scripts to rewrite the code to 32-bit form, transforming "long /*int*/" into "/*long*/ int" for 32 bit platforms.

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
icon10.gif  Re: swt source code Library.java, IS_64 [message #1739856 is a reply to message #1739855] Fri, 05 August 2016 05:10 Go to previous message
chen zero is currently offline chen zeroFriend
Messages: 9
Registered: July 2009
Junior Member
Hi Brain,
Thank you very much!
Previous Topic:maven repo with all SWT versions?
Next Topic:Shell is disposed when there is exception in syncExec.
Goto Forum:
  


Current Time: Mon Dec 11 05:56:45 GMT 2017

Powered by FUDForum. Page generated in 0.01987 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software