pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Move strtoint() to common
Date: Tue, 13 Mar 2018 14:21:52 +0000
Message-ID: <E1evkoK-0006CC-Ce@gemulon.postgresql.org> (raw)

Move strtoint() to common

Several places used similar code to convert a string to an int, so take
the function that we already had and make it globally available.

Reviewed-by: Michael Paquier <michael@paquier.xyz>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/17bb62501787c56e0518e61db13a523d47afd724

Modified Files
--------------
src/backend/nodes/read.c                  | 12 +++++-------
src/backend/parser/scan.l                 |  9 ++++-----
src/backend/utils/adt/datetime.c          | 18 +-----------------
src/common/string.c                       | 15 +++++++++++++++
src/include/common/string.h               |  1 +
src/interfaces/ecpg/pgtypeslib/.gitignore |  1 +
src/interfaces/ecpg/pgtypeslib/Makefile   |  6 +++++-
src/interfaces/ecpg/pgtypeslib/interval.c | 16 ++--------------
src/interfaces/ecpg/preproc/pgc.l         | 10 +++++-----
9 files changed, 39 insertions(+), 49 deletions(-)



view thread (18+ messages)  latest in thread

Message-ID: <E1evkoK-0006CC-Ce@gemulon.postgresql.org>
Permalink:  ../E1evkoK-0006CC-Ce@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1evkoK-0006CC-Ce@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: peter_e@gmx.net
  Subject: Re: pgsql: Move strtoint() to common
  In-Reply-To: <E1evkoK-0006CC-Ce@gemulon.postgresql.org>
  References: <E1evkoK-0006CC-Ce@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