Re: suspicous looking code in copy.c

Поиск
Список
Период
Сортировка
От Andreas Pflug
Тема Re: suspicous looking code in copy.c
Дата
Msg-id 3F4DF33B.6090503@pse-consulting.de
обсуждение исходный текст
Ответ на suspicous looking code in copy.c  (Dave Cramer <dave@fastcrypt.com>)
Ответы Re: suspicous looking code in copy.c  (Dave Cramer <dave@fastcrypt.com>)
Re: suspicous looking code in copy.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Dave Cramer wrote:

>This just doesn't look right.
>
>line 364
>                case COPY_NEW_FE:
> 
>                      while (datasize > 0 && !fe_eof)
>             ....
>
>line 408        datasize =- avail;
>
>
>shouldn't it be datasize -= avail ?
>  
>
AFAIR this is a really outdated K&R style of -=  . Compilers *should* 
recognize this (and will throw an ambiguity error if there's no space 
after =- ), but it's better to use the 'newer' style.

Regards,
Andreas




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Linux2.6 overcommit behaviour
Следующее
От: ohp@pyrenet.fr
Дата:
Сообщение: Index creation takes for ever