void * cast cleanup

Поиск
Список
Период
Сортировка
От Neil Conway
Тема void * cast cleanup
Дата
Msg-id 1096242764.25688.689.camel@localhost.localdomain
обсуждение исходный текст
Ответы Re: void * cast cleanup  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: void * cast cleanup  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
This patch removes a few instances where a pointer type was being
explicitly cast to void * when pfree() was called. Per ANSI89, this is
redundant: any pointer type can be assigned to void *, and vice versa,
without a cast. IMHO adding the cast in this case serves only to make
the code harder to read.

Would anyone object to me removing some more void * casts, e.g. the
parameters to the various _walker functions?

-Neil


Вложения

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

Предыдущее
От: "Koju Iijima"
Дата:
Сообщение: patch for temporary view from TODO list
Следующее
От: Neil Conway
Дата:
Сообщение: minor list cleanup