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

Re: inline newNode()

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>,PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: inline newNode()
Date: 2002-10-08 21:41:41
Message-ID: Pine.LNX.4.44.0210082101500.928-100000@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Neil Conway writes:

> Well, one alternative might be to provide 2 definitions of the
> function -- one an extern inline in the header file, and one using the
> current method (in a separate file, non-inline). Then wrap the header
> file in an #ifdef __GNUC__ block, and the non-inlined version in
> #ifndef __GNUC__.

External inline functions aren't even portable across different versions
of GCC.  It's best not to go there at all.

-- 
Peter Eisentraut   peter_e(at)gmx(dot)net


In response to

pgsql-hackers by date

Next:From: Peter EisentrautDate: 2002-10-08 21:42:18
Subject: Re: v7.2.3 - tag'd, packaged ... need it checked ...
Previous:From: Peter EisentrautDate: 2002-10-08 21:41:24
Subject: Re: inline newNode()

pgsql-patches by date

Next:From: Kris JurkaDate: 2002-10-08 22:34:52
Subject: Re: Bug #794: JDBC 7.3 PreparedStatement.setNull(..)
Previous:From: Peter EisentrautDate: 2002-10-08 21:41:24
Subject: Re: inline newNode()

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