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

From: neilc(at)postgresql(dot)org (Neil Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Various cosmetic code cleanup for PL/Python: - use "bool" rather
Date: 2005-12-26 04:28:48
Message-ID: 20051226042848.711A59DD596@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2005-12-26 05:14:52 pgsql: Add: * %Make row-wise comparisons work per SQL spec Right
Previous Message User Gsmet 2005-12-26 00:34:55 pgfouine - pgfouine: new parser