Обсуждение: pgsql: Various cosmetic code cleanup for PL/Python: - use "bool" rather

Поиск
Список
Период
Сортировка

pgsql: Various cosmetic code cleanup for PL/Python: - use "bool" rather

От
neilc@postgresql.org (Neil Conway)
Дата:
Log Message:
-----------
Various cosmetic code cleanup for PL/Python:

- use "bool" rather than "int" for boolean variables

- use "PLy_malloc" rather than "malloc" in two places

- define "PLy_strdup", and use it rather than malloc() + strcpy() in
  two places (which should have been memcpy(), anyway).

- remove a bunch of redundant parentheses from expressions that do not
  need the parentheses for code clarity

Modified Files:
--------------
    pgsql/src/pl/plpython:
        plpython.c (r1.66 -> r1.67)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/plpython.c.diff?r1=1.66&r2=1.67)