| От | Tom Lane |
|---|---|
| Тема | Recently added typedef "string" is a horrid idea |
| Дата | |
| Msg-id | 26503.1454796667@sss.pgh.pa.us обсуждение |
| Ответы |
Re: Recently added typedef "string" is a horrid idea
Re: Recently added typedef "string" is a horrid idea |
| Список | pgsql-hackers |
I see that commit b47b4dbf6 added this to varlena.c:
typedef struct varlena string;
This is a remarkably bad idea. It will cause pgindent to do strange
things anywhere it sees a variable or field named "string", of which
we have quite a few. Remember that the effects of typedef names are
*global*, so far as pgindent is concerned; not only varlena.c will
be affected.
Please rename this typedef with some less-generic name. Probably
some of the other identifiers added in the same commit should be
adjusted to match.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера