Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 200552 Details for
Bug 352927
SWT StyledText scrolling is very slow for text with lots of commas
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
c snippet to help test byte order
snippet.c (text/plain), 1.21 KB, created by
Felipe Heidrich
on 2011-07-28 15:16:42 EDT
(
hide
)
Description:
c snippet to help test byte order
Filename:
MIME Type:
Creator:
Felipe Heidrich
Created:
2011-07-28 15:16:42 EDT
Size:
1.21 KB
patch
obsolete
>#include <stdio.h> > >typedef struct tag_SCRIPT_CONTROL_OLD { > unsigned long uDefaultLanguage :16; > unsigned long fContextDigits :1; > unsigned long fInvertPreBoundDir :1; > unsigned long fInvertPostBoundDir :1; > unsigned long fLinkStringBefore :1; > unsigned long fLinkStringAfter :1; > unsigned long fNeutralOverride :1; > unsigned long fNumericOverride :1; > unsigned long fLegacyBidiClass :1; > unsigned long fReserved :8; >} SCRIPT_CONTROL_OLD; > > >typedef struct tag_SCRIPT_CONTROL { > unsigned long uDefaultLanguage :16; > unsigned long fContextDigits :1; > unsigned long fInvertPreBoundDir :1; > unsigned long fInvertPostBoundDir :1; > unsigned long fLinkStringBefore :1; > unsigned long fLinkStringAfter :1; > unsigned long fNeutralOverride :1; > unsigned long fNumericOverride :1; > unsigned long fLegacyBidiClass :1; > unsigned long fMergeNeutralItems :1; > unsigned long fReserved :7; >} SCRIPT_CONTROL; > > >int check(unsigned long value) { > SCRIPT_CONTROL_OLD old; > old.fReserved = value; > return ((SCRIPT_CONTROL*)&old)->fMergeNeutralItems; >} > >int main(int argc, char **argv) { > printf("Zero=%i\n", check(0)); > printf("One=%i\n", check(1)); > printf("-One=%i\n", check(-1)); > printf("0x80=%i\n", check(0x80)); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 352927
:
200231
|
200232
|
200234
| 200552