Skip to Content.
Sympa Menu

freetds - Re: [freetds] including readpassphrase.h

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • 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




Archive powered by MHonArc 2.6.24.

Top of Page