pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Add pg_strnlen() a portable implementation of strlen.
Date: Tue, 10 Oct 2017 14:56:18 -0700
Message-ID: <20171010215618.qbracvhslzvuxilv@alap3.anarazel.de> (raw)
In-Reply-To: <20171010205315.g7l6tf3j5jzplqax@alap3.anarazel.de>
References: <E1e1gR2-0005fB-SI@gemulon.postgresql.org>
	<20171009231509.nlptgdrtg2au6frn@alap3.anarazel.de>
	<44745881-6095-e3ba-e8eb-23b1d92bffab@dunslane.net>
	<20171010194818.p2hhod32ezmvhryb@alap3.anarazel.de>
	<21912.1507668699@sss.pgh.pa.us>
	<20171010205315.g7l6tf3j5jzplqax@alap3.anarazel.de>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On 2017-10-10 13:53:15 -0700, Andres Freund wrote:
> On 2017-10-10 16:51:39 -0400, Tom Lane wrote:
> > Andres Freund <andres@anarazel.de> writes:
> > > As far as I can tell it's still somehow using a configure from before
> > > the last commits:
> > 
> > No, it's pilot error.  The AC_CHECK_FUNCS call you added strnlen to
> > is only executed if
> > AS_IF([test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"],
> 
> Dear god, I'm daft. Dear god, m4 is a horrible lanuagage.

Here's a fix. Not quite sure whether we really need the
HAVE_DECL_STRNLEN test, added it for symmetry.

Afaict windows "always" had strnlen, so no need to meddle with the
windows build.

Will eat lunch and push, even if there's some futher adjustments, I'd
like to get Andrew's animals green again.

Greetings,

Andres Freund

Attachments:

  0001-Rewrite-strnlen-replacement-implementation-from-8a24.patch (text/x-diff, 0B) download

view thread (16+ messages)  latest in thread

Message-ID: <20171010215618.qbracvhslzvuxilv@alap3.anarazel.de>
Permalink:  ../20171010215618.qbracvhslzvuxilv@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20171010215618.qbracvhslzvuxilv@alap3.anarazel.de

 ·  · 

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: andres@anarazel.de, tgl@sss.pgh.pa.us, andrew@dunslane.net
  Subject: Re: pgsql: Add pg_strnlen() a portable implementation of strlen.
  In-Reply-To: <20171010215618.qbracvhslzvuxilv@alap3.anarazel.de>
  References: <E1e1gR2-0005fB-SI@gemulon.postgresql.org> <20171009231509.nlptgdrtg2au6frn@alap3.anarazel.de> <44745881-6095-e3ba-e8eb-23b1d92bffab@dunslane.net> <20171010194818.p2hhod32ezmvhryb@alap3.anarazel.de> <21912.1507668699@sss.pgh.pa.us> <20171010205315.g7l6tf3j5jzplqax@alap3.anarazel.de> <20171010215618.qbracvhslzvuxilv@alap3.anarazel.de>

* 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