List Info

Thread: 64-bit porting issue on cmsSetUserFormatters




64-bit porting issue on cmsSetUserFormatters
country flaguser name
Japan
2007-10-19 10:05:33
Hi,

I've once asked about the usage of cmsSetUserFormatters
function to pass the
user defined parameters to cmsFORMATTER functions.
And the answer was to use dwInput/dwOutput for passing
pointers. And it
works pretty well on 32-bit codes but I'm now porting the
code to 64-bit
environments including Windows and Linux. And I found that
LLP64
environments like Windows (unsigned long == 32bit), DWORD is
not enough to
carry pointers. So are there any plan to switch these
parameters to 64-bit
variables? I'm currently modifying the header to support
64-bit parameters.

Thanks in advance,

------
Takashi Kawasaki <kawasakicelartem.com>
Celartem Technology Inc.

Company Website: http://www.celartem.com/

R&D Website: http://tokage.celartem.co
m/



------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Lcms-user mailing list
Lcms-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user


Re: 64-bit porting issue on cmsSetUserFormatters
country flaguser name
United States
2007-10-19 10:31:15
On Sat, 20 Oct 2007, Takashi Kawasaki wrote:
> environments including Windows and Linux. And I found
that LLP64
> environments like Windows (unsigned long == 32bit),
DWORD is not enough to
> carry pointers. So are there any plan to switch these
parameters to 64-bit
> variables? I'm currently modifying the header to
support 64-bit parameters.

A year or more ago Marti promised me that a future lcms
release would 
elminate use of these Windows-derived typedefs.  There
were/are 
causing lcms not to compile under MinGW/GCC.  It seems that
Windows 
itself is now sufficient incentive to use portable typedefs
(e.g. from 
ANSI C) rather than the Windows derived ones. 

Bob
======================================
Bob Friesenhahn
bfriesensimple.dallas.tx.us, http://w
ww.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMag
ick.org/


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Lcms-user mailing list
Lcms-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )