<AWT Dev> [OpenJDK 2D-Dev] _LITTLE_ENDIAN
mario.torre at aicas.com
Tue Jun 23 15:25:09 PDT 2009
Il 23/06/2009 23:51, Roman Kennke ha scritto:
>> Someone would need to make darn sure that ALL uses of the old
>> name have been changed. I counted 362 references to this variable
>> in the openjdk7 repositories, I assume a similar number in openjdk6.
>> The closed jdk sources have an additional 13 references to this
>> _LITTLE_ENDIAN name Sun would need to change too.
>> Do you really want to change 362+ lines for this name change?
> Surely not. I haven't counted and I blindly assumed we talk about lcms
> only here. Sorry. In this case I would revert to #undef _LITTLE_ENDIAN
> or -U_LITTLE_ENDIAN on platforms that do crazy stuff. No code changes
> needed then...
-U_LITTLE_ENDIAN is not going to help, because those crazy platform
define this anyway... for one reason or another, this gets in the way of
those files, and causes the problem I mentioned. We have seen this
already with MiniX, you remember it?
Roman, maybe we should introduce some big macro instead ;)
In any case, I agree this is my problem, there is nothing wrong in the
JDK code, I just think it would be more portable with this refactored a bit.
Mario Torre, Software Developer, http://www.jroller.com/neugens/
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com * Tel: +49-721-663 968-44
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF
USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim
Geschäftsführer: Dr. James J. Hunt
Please, support open standards:
More information about the awt-dev