OSDN Git Service

Various cosmetic code cleanup for PL/Python:
authorNeil Conway <neilc@samurai.com>
Mon, 26 Dec 2005 04:28:48 +0000 (04:28 +0000)
committerNeil Conway <neilc@samurai.com>
Mon, 26 Dec 2005 04:28:48 +0000 (04:28 +0000)
commit97e1535fba2aac8e3fd8c4aabc90b958107b7953
tree8af0fe752654e1490be0c69ab21ccddd57fa9362
parent261114a23f51c3d35a50ac27f2f453c6767bfeff
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
src/pl/plpython/plpython.c