Skip site navigation (1) Skip section navigation (2)

pgsql: Add support for easily declaring static inline functions

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add support for easily declaring static inline functions
Date: 2012-10-08 19:36:08
Message-ID: E1TLJ7Y-0003dz-Pe@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Add support for easily declaring static inline functions

We already had those, but they forced modules to spell out the function
bodies twice.  Eliminate some duplicates we had already grown.

Extracted from a somewhat larger patch from Andres Freund.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/976fa10d20ec9882229020fa16f4d74263066a40

Modified Files
--------------
src/backend/nodes/list.c             |   28 ++------------------
src/backend/utils/mmgr/mcxt.c        |   25 ++----------------
src/backend/utils/sort/sortsupport.c |   47 ++-------------------------------
src/include/c.h                      |   18 +++++++++++++
src/include/nodes/pg_list.h          |   22 ++++++++--------
src/include/utils/palloc.h           |   14 ++++++---
src/include/utils/sortsupport.h      |   22 ++++++++-------
7 files changed, 59 insertions(+), 117 deletions(-)

pgsql-committers by date

Next:From: Alvaro HerreraDate: 2012-10-08 21:33:54
Subject: pgsql: Fix thinko in previous commit
Previous:From: Robert HaasDate: 2012-10-08 14:16:18
Subject: pgsql: Add #define for UUIDOID.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group