pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Code review for simplehash.h.
Date: Tue, 28 Aug 2018 00:36:35 +0000
Message-ID: <E1fuRzn-0002tU-4s@gemulon.postgresql.org> (raw)

Code review for simplehash.h.

Fix reference to non-existent file in comment.

Add SH_ prefix to the EMPTY and IN_USE tokens, to reduce likelihood of
collisions with unrelated macros.

Add include guards around the function definitions that are not
"parameterized", so the header can be used again in the same translation
unit.

Undefine SH_EQUAL macro where other "parameter" macros are undefined, for
the same reason.

Author: Thomas Munro
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/CAEepm%3D1LdXZ3mMTM8tHt_b%3DK1kREit%3Dp8sikesak%3DkzHHM07Nw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ee0e2745c2f2c8ac47250dde718ac712686a79aa

Modified Files
--------------
src/include/lib/simplehash.h | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)



Message-ID: <E1fuRzn-0002tU-4s@gemulon.postgresql.org>
Permalink:  ../E1fuRzn-0002tU-4s@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fuRzn-0002tU-4s@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Code review for simplehash.h.
  In-Reply-To: <E1fuRzn-0002tU-4s@gemulon.postgresql.org>
  References: <E1fuRzn-0002tU-4s@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox