Re: [HACKERS] TRUE and true

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема Re: [HACKERS] TRUE and true
Дата
Msg-id CAPpHfdtsF13YM1jbKCDBrdeC2Da5vs9Ca6sL4rwRj6=h1ACZgw@mail.gmail.com
обсуждение исходный текст
Ответ на [HACKERS] TRUE and true  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
Ответы Re: [HACKERS] TRUE and true  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
Список pgsql-hackers
On Thu, Jun 22, 2017 at 2:09 PM, Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp> wrote:
Hello, I have a maybe-silly question.

What makes us have both TRUE/true or FALSE/false as constants of
bool?

The following definitions in c.h didn't mess anything up.

#define TRUE    true
#define FALSE   false
 
+1
I don't know any policy about where to use TRUE and FALSE over true and false.

# NIL seems causing similar mess.

NIL is used for lists, while NULL is used for other pointers.
That may cause redundant, but at least there is clear policy.

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company 

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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: [HACKERS] Pluggable storage
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] SQL MERGE patches for PostgreSQL Versions