On 4/26/06, Tim Peters <[EMAIL PROTECTED]> wrote:
> [Brett Cannon]
> >> I created patch 1474907 with a fix for it. Checks if %zd works for
> >> size_t and if so sets PY_FORMAT_SIZE_T to "z", otherwise just doesn't
> >> set the macro def.
> >>
> >> Assigned to Martin to make sure I didn't foul it u
[Brett Cannon]
>> I created patch 1474907 with a fix for it. Checks if %zd works for
>> size_t and if so sets PY_FORMAT_SIZE_T to "z", otherwise just doesn't
>> set the macro def.
>>
>> Assigned to Martin to make sure I didn't foul it up, but pretty much
>> anyone could probably double-check it.
Brett Cannon wrote:
> I created patch 1474907 with a fix for it. Checks if %zd works for
> size_t and if so sets PY_FORMAT_SIZE_T to "z", otherwise just doesn't
> set the macro def.
>
> Assigned to Martin to make sure I didn't foul it up, but pretty much
> anyone could probably double-check it.
On 4/2/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> Tim Peters wrote:
> > For gcc we _could_ solve it in the obvious way, which I guess Martin
> > was hoping to avoid: change Unixish config to detect whether the
> > platform C supports the "z" format modifier (I believe gcc does), and
> > if
Tim Peters wrote:
> For gcc we _could_ solve it in the obvious way, which I guess Martin
> was hoping to avoid: change Unixish config to detect whether the
> platform C supports the "z" format modifier (I believe gcc does), and
> if so arrange to stick
>
> #define PY_FORMAT_SIZE_T "z"
It's not g
On 4/1/06, Tim Peters <[EMAIL PROTECTED]> wrote:
> [Brett Cannon]
> > ...
> > This is just so ridiculous.
>
> Ya think ;-)?
>
> > Is there even a way to do this reasonably?
>
> Not really in C89. That's why C99 introduced the "z" printf modifier,
> and approximately a billion ;-) format macros li
[Brett Cannon]
> ...
> This is just so ridiculous.
Ya think ;-)?
> Is there even a way to do this reasonably?
Not really in C89. That's why C99 introduced the "z" printf modifier,
and approximately a billion ;-) format macros like PY_FORMAT_SIZE_T
(since there's almost nothing portably useful
On 4/1/06, Tim Peters <[EMAIL PROTECTED]> wrote:
> [Brett Cannon]
> > I think these are all Tim's fault =) :
>
> No, they're Anthony's fault :-) He added this clause to pyport.h yesterday:
>
> # if SIZEOF_SIZE_T == SIZEOF_INT
> # define PY_FORMAT_SIZE_T ""
>
> and that's obviously triggeri
[Brett Cannon]
> I think these are all Tim's fault =) :
No, they're Anthony's fault :-) He added this clause to pyport.h yesterday:
# if SIZEOF_SIZE_T == SIZEOF_INT
# define PY_FORMAT_SIZE_T ""
and that's obviously triggering on your platform. He added this (at
my suggestion) to shut u