Re: [HACKERS] Size vs size_t

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Size vs size_t
Дата
Msg-id 27349.1489702854@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Size vs size_t  (Thomas Munro <thomas.munro@enterprisedb.com>)
Ответы Re: [HACKERS] Size vs size_t  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
Thomas Munro <thomas.munro@enterprisedb.com> writes:
> Naive replacement in new files (present in master but not in 9.6) with
> the attached script, followed by a couple of manual corrections where
> Size was really an English word in a comment, gets the attached diff.

In the case of mmgr/slab.c, a lot of those uses of Size probably
correspond to instantiations of the MemoryContext APIs; so blindly
changing them to "size_t" seems like a bit of a type violation
(and might indeed draw warnings from pickier compilers).  Don't
know if any of the other things you've identified here have similar
entanglements.
        regards, tom lane



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] multivariate statistics (v25)
Следующее
От: "MauMau"
Дата:
Сообщение: Re: [HACKERS] BUG #13755: pgwin32_is_service not checking if SECURITY_SERVICE_SID is disabled