| От | Tom Lane |
|---|---|
| Тема | Re: do {} while (0) nitpick |
| Дата | |
| Msg-id | 5365.1588606117@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: do {} while (0) nitpick (Jesse Zhang <sbjesse@gmail.com>) |
| Список | pgsql-hackers |
Jesse Zhang <sbjesse@gmail.com> writes:
> On Fri, May 1, 2020 at 2:32 PM Tom Lane wrote:
>> Grepping showed me that there were some not-do-while macros that
>> also had trailing semicolons. These seem just as broken, so I
>> fixed 'em all.
> I'm curious: *How* are you able to discover those occurrences with grep?
Um, well, actually, it was a little perl script with a state variable
to remember whether it was in a macro definition or not (set on seeing
a #define, unset when current line doesn't end with '\', complain if
set and line ends with ';').
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера