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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d6c916f) | patch
Clean up some code using "(expr) ? true : false"
Wed, 8 Sep 2021 00:44:04 +0000 (09:44 +0900)
Wed, 8 Sep 2021 00:44:04 +0000 (09:44 +0900)
commit fd0625c7a9c679c0c1e896014b8f49a489c3a245
Clean up some code using "(expr) ? true : false"

All the code paths simplified here were already using a boolean or used
an expression that led to zero or one, making the extra bits
unnecessary.

Author: Justin Pryzby
Reviewed-by: Tom Lane, Michael Paquier, Peter Smith
Discussion: https://postgr.es/m/20210428182936.GE27406@telsasoft.com
22 files changed:
contrib/intarray/_int_tool.c diff | blob | blame | history
contrib/ltree/ltree_gist.c diff | blob | blame | history
contrib/sepgsql/selinux.c diff | blob | blame | history
src/backend/access/gin/gindatapage.c diff | blob | blame | history
src/backend/access/gin/ginutil.c diff | blob | blame | history
src/backend/access/gist/gistsplit.c diff | blob | blame | history
src/backend/access/hash/hash.c diff | blob | blame | history
src/backend/access/hash/hashinsert.c diff | blob | blame | history
src/backend/access/hash/hashovfl.c diff | blob | blame | history
src/backend/access/hash/hashpage.c diff | blob | blame | history
src/backend/access/heap/heapam_visibility.c diff | blob | blame | history
src/backend/executor/spi.c diff | blob | blame | history
src/backend/jit/jit.c diff | blob | blame | history
src/backend/optimizer/util/pathnode.c diff | blob | blame | history
src/backend/statistics/mcv.c diff | blob | blame | history
src/backend/storage/file/buffile.c diff | blob | blame | history
src/backend/tsearch/ts_parse.c diff | blob | blame | history
src/backend/utils/adt/bool.c diff | blob | blame | history
src/backend/utils/adt/ruleutils.c diff | blob | blame | history
src/backend/utils/adt/tsquery_gist.c diff | blob | blame | history
src/backend/utils/adt/tsquery_util.c diff | blob | blame | history
src/backend/utils/fmgr/dfmgr.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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