git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: bdc3d7f) | patch
Centralize definition of integer limits.
2015年3月25日 21:39:42 +0000 (22:39 +0100)
2015年3月25日 21:39:42 +0000 (22:39 +0100)
commit 83ff1618bc9d4e530d3ef2a668a71326784a753c
Centralize definition of integer limits.

Several submitted and even committed patches have run into the problem
that C89, our baseline, does not provide minimum/maximum values for
various integer datatypes. C99's stdint.h does, but we can't rely on
it.

Several parts of the code defined limits locally, so instead centralize
the definitions to c.h.

This patch also changes the more obvious usages of literal limit values;
there's more places that could be changed, but it's less clear whether
it's beneficial to change those.

Author: Andrew Gierth
Discussion: 87619tc5wc.fsf@news-spur.riddles.org.uk
18 files changed:
contrib/btree_gist/btree_ts.c diff | blob | blame | history
contrib/intarray/_int_gist.c diff | blob | blame | history
contrib/pgbench/pgbench.c diff | blob | blame | history
src/backend/access/transam/xlog.c diff | blob | blame | history
src/backend/tsearch/wparser_def.c diff | blob | blame | history
src/backend/utils/adt/int8.c diff | blob | blame | history
src/backend/utils/adt/numutils.c diff | blob | blame | history
src/backend/utils/adt/timestamp.c diff | blob | blame | history
src/backend/utils/adt/tsrank.c diff | blob | blame | history
src/backend/utils/adt/txid.c diff | blob | blame | history
src/include/c.h diff | blob | blame | history
src/include/datatype/timestamp.h diff | blob | blame | history
src/include/executor/instrument.h diff | blob | blame | history
src/include/nodes/parsenodes.h diff | blob | blame | history
src/include/pg_config_manual.h diff | blob | blame | history
src/include/port/atomics.h diff | blob | blame | history
src/include/storage/predicate_internals.h diff | blob | blame | history
src/include/utils/date.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /