[Bf-python] 64-bit and void*/int hackery

Ken Hughes khughes at pacific.edu
Tue Feb 5 17:42:43 CET 2008


When I was trying to make the code 64-bit clean a few years ago that Ton 
was resistant to using intptr_t and uintptr_t:

http://lists.blender.org/pipermail/bf-committers/2005-November/012378.html

Not sure if I misunderstood why.

Ken

Nathan Letwory wrote:
> On 2/5/08, Campbell Barton <ideasman42 at gmail.com> wrote:
>   
>> Would be nice to resolve this since it prints loads of annoying warnings
>>
>> from this page...
>> http://www-128.ibm.com/developerworks/linux/library/l-port64.html
>>
>> # size_t:
>> An unsigned integer and the result of the sizeof operator. This is
>> used when passing parameters to functions such as malloc (3), and
>> returned from several functions such as fred (2).
>>
>> # intptr_t and uintptr_t:
>>
>> seems like intptr_t could be used here, cant we just use defines for
>> compilers that dont have these built in?
>>
>>     
>
> See http://msdn2.microsoft.com/en-us/library/aa384242(VS.85).aspx for
> the Windows part.
>
> /Nathan
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>
>   




More information about the Bf-python mailing list