pgsql: Add parentheses to macros when args are used in computations.

From: momjian(at)svr1(dot)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add parentheses to macros when args are used in computations.
Date: 2005-05-25 21:40:43
Message-ID: 20050525214043.65F4752888@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Add parentheses to macros when args are used in computations. Without
them, the executation behavior could be unexpected.

Modified Files:
--------------
pgsql/contrib/intarray:
_int_bool.c (r1.3 -> r1.4)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/intarray/_int_bool.c.diff?r1=1.3&r2=1.4)
pgsql/contrib/ltree:
crc32.c (r1.4 -> r1.5)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/ltree/crc32.c.diff?r1=1.4&r2=1.5)
ltree.h (r1.10 -> r1.11)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/ltree/ltree.h.diff?r1=1.10&r2=1.11)
ltxtquery_io.c (r1.6 -> r1.7)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/ltree/ltxtquery_io.c.diff?r1=1.6&r2=1.7)
pgsql/contrib/pgcrypto:
crypt-blowfish.c (r1.8 -> r1.9)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/pgcrypto/crypt-blowfish.c.diff?r1=1.8&r2=1.9)
rijndael.c (r1.9 -> r1.10)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/pgcrypto/rijndael.c.diff?r1=1.9&r2=1.10)
sha1.c (r1.14 -> r1.15)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/pgcrypto/sha1.c.diff?r1=1.14&r2=1.15)
pgsql/contrib/rtree_gist:
rtree_gist.c (r1.11 -> r1.12)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/rtree_gist/rtree_gist.c.diff?r1=1.11&r2=1.12)
pgsql/contrib/tsearch:
crc32.c (r1.2 -> r1.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch/crc32.c.diff?r1=1.2&r2=1.3)
gistidx.h (r1.6 -> r1.7)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch/gistidx.h.diff?r1=1.6&r2=1.7)
query.c (r1.16 -> r1.17)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch/query.c.diff?r1=1.16&r2=1.17)
query.h (r1.4 -> r1.5)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch/query.h.diff?r1=1.4&r2=1.5)
pgsql/contrib/tsearch2:
crc32.c (r1.1 -> r1.2)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch2/crc32.c.diff?r1=1.1&r2=1.2)
gistidx.h (r1.2 -> r1.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch2/gistidx.h.diff?r1=1.2&r2=1.3)
query.c (r1.13 -> r1.14)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch2/query.c.diff?r1=1.13&r2=1.14)
query.h (r1.3 -> r1.4)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch2/query.h.diff?r1=1.3&r2=1.4)
ts_stat.h (r1.4 -> r1.5)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch2/ts_stat.h.diff?r1=1.4&r2=1.5)
tsvector.h (r1.4 -> r1.5)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch2/tsvector.h.diff?r1=1.4&r2=1.5)
pgsql/src/backend/access/hash:
hashfunc.c (r1.43 -> r1.44)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/hash/hashfunc.c.diff?r1=1.43&r2=1.44)
pgsql/src/backend/regex:
regcomp.c (r1.42 -> r1.43)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/regex/regcomp.c.diff?r1=1.42&r2=1.43)
pgsql/src/backend/utils/adt:
formatting.c (r1.86 -> r1.87)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/formatting.c.diff?r1=1.86&r2=1.87)
pg_lzcompress.c (r1.18 -> r1.19)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/pg_lzcompress.c.diff?r1=1.18&r2=1.19)
pgsql/src/backend/utils/sort:
tuplesort.c (r1.48 -> r1.49)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/sort/tuplesort.c.diff?r1=1.48&r2=1.49)
pgsql/src/bin/pg_dump:
pg_backup_archiver.h (r1.63 -> r1.64)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/pg_backup_archiver.h.diff?r1=1.63&r2=1.64)
pgsql/src/include:
c.h (r1.183 -> r1.184)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/c.h.diff?r1=1.183&r2=1.184)
port.h (r1.74 -> r1.75)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/port.h.diff?r1=1.74&r2=1.75)
pgsql/src/include/access:
attnum.h (r1.20 -> r1.21)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/access/attnum.h.diff?r1=1.20&r2=1.21)
pgsql/src/include/catalog:
pg_trigger.h (r1.22 -> r1.23)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/catalog/pg_trigger.h.diff?r1=1.22&r2=1.23)
pgsql/src/include/libpq:
crypt.h (r1.30 -> r1.31)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/libpq/crypt.h.diff?r1=1.30&r2=1.31)
pgsql/src/include/regex:
regguts.h (r1.3 -> r1.4)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/regex/regguts.h.diff?r1=1.3&r2=1.4)
pgsql/src/include/storage:
itempos.h (r1.20 -> r1.21)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/storage/itempos.h.diff?r1=1.20&r2=1.21)
pgsql/src/include/utils:
pg_lzcompress.h (r1.10 -> r1.11)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/pg_lzcompress.h.diff?r1=1.10&r2=1.11)
timestamp.h (r1.42 -> r1.43)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/timestamp.h.diff?r1=1.42&r2=1.43)
pgsql/src/interfaces/ecpg/pgtypeslib:
dt.h (r1.22 -> r1.23)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/pgtypeslib/dt.h.diff?r1=1.22&r2=1.23)
pgsql/src/port:
crypt.c (r1.11 -> r1.12)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/crypt.c.diff?r1=1.11&r2=1.12)
qsort.c (r1.5 -> r1.6)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/qsort.c.diff?r1=1.5&r2=1.6)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2005-05-25 22:12:05 pgsql: Quick patch to adress a recent concern on the mailing list about
Previous Message User Tom 2005-05-25 21:20:14 pqa - pqa: