On Thu, 29 Aug 2013, Sergey Kandaurov wrote:
On 22 August 2013 14:51, Bruce Evans wrote:
expand_number() remains a very badly designed and implemented function.
Its design errors start with its name. It doesn't expand numbers. It
...
[...]
Some of the other bugs in the old version:
% /*
On 22 August 2013 14:51, Bruce Evans wrote:
> On Wed, 21 Aug 2013, Jilles Tjoelker wrote:
>
>> On Thu, Aug 22, 2013 at 01:24:13AM +0400, Sergey Kandaurov wrote:
>>>
>>> On Wed, Aug 21, 2013 at 10:27:25PM +0200, Jilles Tjoelker wrote:
On Wed, Aug 21, 2013 at 11:03:10PM +0400, Sergey Kanda
On Wed, 21 Aug 2013, Jilles Tjoelker wrote:
On Thu, Aug 22, 2013 at 01:24:13AM +0400, Sergey Kandaurov wrote:
On Wed, Aug 21, 2013 at 10:27:25PM +0200, Jilles Tjoelker wrote:
On Wed, Aug 21, 2013 at 11:03:10PM +0400, Sergey Kandaurov wrote:
On Wed, Aug 21, 2013 at 09:21:47PM +0400, Andrey Che
On 22.08.2013 14:01, Andrey Chernov wrote:
> On 22.08.2013 1:37, Jilles Tjoelker wrote:
>>> if (number == UINTMAX_MAX && errno == ERANGE) {
>>> return (-1);
>>> }
>>>
>>> + if (errno == 0)
>>> + errno = saved_errno;
>>> +
>> This looks good to m
On 22.08.2013 1:37, Jilles Tjoelker wrote:
>> if (number == UINTMAX_MAX && errno == ERANGE) {
>> return (-1);
>> }
>>
>> + if (errno == 0)
>> + errno = saved_errno;
>> +
> This looks good to me.
>
Just being nitpicking) number == UINTMAX_MAX c
On Thu, Aug 22, 2013 at 01:24:13AM +0400, Sergey Kandaurov wrote:
> On Wed, Aug 21, 2013 at 10:27:25PM +0200, Jilles Tjoelker wrote:
> > On Wed, Aug 21, 2013 at 11:03:10PM +0400, Sergey Kandaurov wrote:
> > > On Wed, Aug 21, 2013 at 09:21:47PM +0400, Andrey Chernov wrote:
> > > > On 21.08.2013 20:4
On Wed, Aug 21, 2013 at 10:27:25PM +0200, Jilles Tjoelker wrote:
> On Wed, Aug 21, 2013 at 11:03:10PM +0400, Sergey Kandaurov wrote:
> > On Wed, Aug 21, 2013 at 09:21:47PM +0400, Andrey Chernov wrote:
> > > On 21.08.2013 20:46, Sergey Kandaurov wrote:
> > > > number = strtoumax(buf, &endptr
On Wed, Aug 21, 2013 at 11:03:10PM +0400, Sergey Kandaurov wrote:
> On Wed, Aug 21, 2013 at 09:21:47PM +0400, Andrey Chernov wrote:
> > On 21.08.2013 20:46, Sergey Kandaurov wrote:
> > > number = strtoumax(buf, &endptr, 0);
> > >
> > > + if (number == UINTMAX_MAX && errno == ERANGE) {
> > > +
On Wed, Aug 21, 2013 at 09:21:47PM +0400, Andrey Chernov wrote:
> On 21.08.2013 20:46, Sergey Kandaurov wrote:
> > number = strtoumax(buf, &endptr, 0);
> >
> > + if (number == UINTMAX_MAX && errno == ERANGE) {
> > + return (-1);
> > + }
>
> You need to reset errno before strtou
On 21.08.2013 20:46, Sergey Kandaurov wrote:
> number = strtoumax(buf, &endptr, 0);
>
> + if (number == UINTMAX_MAX && errno == ERANGE) {
> + return (-1);
> + }
You need to reset errno before strtoumax() call (errno = 0), because any
of previous functions may left it as
10 matches
Mail list logo