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

Re: Header File cleanup.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Header File cleanup.
Date: 2000-05-30 06:06:08
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Lamar Owen <lamar(dot)owen(at)wgcr(dot)org> writes:
> Enlighten me:
> Why use #include "header.h" over #include <header.h> for exported interface
> header files?

As Marc mentioned, we've gone round on that before.  I think the bias
for using "" is largely because it's convenient (or even necessary,
in some scenarios) for building Postgres itself.  I am not aware of
any compelling arguments why <> would be better from the perspective
of a client app trying to use already-installed Postgres header files
--- if you know some reasons, let's hear 'em!

I'm prepared to believe that the client's-eye view might favor something
different from the developer's-eye view.  I think you were suggesting
that we might want to replace "" by <> in installed copies of the
headers.  I'd support that if it were shown necessary, but I'd want to
be shown first...

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Peter MountDate: 2000-05-30 06:46:28
Subject: RE: Postgresql 7.0 JDBC exceptions - broken connections ?
Previous:From: Tom LaneDate: 2000-05-30 05:49:55
Subject: Re: Full text indexing preformance! (long)

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