Re: psql use of 'volatile'

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: psql use of 'volatile'
Дата
Msg-id Pine.GSO.4.02A.10006291833310.8364-100000@Rama.DoCS.UU.SE
обсуждение исходный текст
Ответ на psql use of 'volatile'  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
On Thu, 29 Jun 2000, Bruce Momjian wrote:

> Can someone explain why 'volatile' is used in psql/mainloop.c?

If you remove them then you get tons of warnings about variables possibly
getting clobbered. The reason is the longjmp business that's going on when
you press Control-C. (The fact that the variables would get clobbered is
not critical since they're reinitialized immediately anyway, but who am I
to argue with the compiler.)

-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden



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

Предыдущее
От: "Scott Winterstein"
Дата:
Сообщение: database into website
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Automatic dependency generation