freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Craig A. Berry" <craigberry AT mac.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] including readpassphrase.h
- Date: Tue, 20 Dec 2005 14:03:53 -0600
At 2:09 PM -0500 12/20/05, Lowden, James K wrote:
>
>I also think it's a good idea to have include files in one place and
>source in another, if the include is to be shared. If the include is
>not to be used elsewhere -- i.e. the .h file is only for one file or for
>files in only one directory -- then it should stay with the files(s) and
>
>
> #include "foo.h"
>
>will work fine.
>
>In our case, rather than:
>
> $ mv src/replacements/readpassphrase.h \
> include/tds_readpassphrase.h
>
>I prefer:
>
> $ mkdir include/replacements
> $ mv src/replacements/readpassphrase.h \
> include/replacements
>and
> #include <replacements/readpassphrase.h>
>
>because it makes clear that our readpassphrase is a replacement, not a
>specialized enhancement. Also, it has appealing parallelism:
>
> src/replacements/*.c
> include/replacements/*.h
>
>How does that sound?
That sounds great. And it has the added advantage of not changing
anything inside readpassphrase.c so upgrades will be simpler. Thanks for
the replies.
--
________________________________________
Craig A. Berry
mailto:craigberry AT mac.com
"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser
-
[freetds] including readpassphrase.h,
Craig A. Berry, 12/18/2005
- Re: [freetds] including readpassphrase.h, James K. Lowden, 12/19/2005
- <Possible follow-up(s)>
-
Re: [freetds] including readpassphrase.h,
ZIGLIO, Frediano, VF-IT, 12/20/2005
- Re: [freetds] including readpassphrase.h, Craig A. Berry, 12/20/2005
- Re: [freetds] including readpassphrase.h, ZIGLIO, Frediano, VF-IT, 12/20/2005
-
Re: [freetds] including readpassphrase.h,
Lowden, James K, 12/20/2005
- Re: [freetds] including readpassphrase.h, Craig A. Berry, 12/20/2005
- Re: [freetds] including readpassphrase.h, ZIGLIO, Frediano, VF-IT, 12/21/2005
Archive powered by MHonArc 2.6.24.