Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group