This is the mail archive of the
cygwin-developers@sources.redhat.com
mailing list for the Cygwin project.
Re: default cygdrive path prefix #define
On Sun, Nov 05, 2000 at 12:05:28AM -0500, Jason Tishler wrote:
>What about winsup/cygwin/include/sys/version.h? There is already stuff
>like the following:
>
> /* Identifiers used in the Win32 registry. */
>
> #define CYGWIN_INFO_CYGNUS_REGISTRY_NAME "Cygnus Solutions"
> #define CYGWIN_INFO_CYGWIN_REGISTRY_NAME "Cygwin"
> #define CYGWIN_INFO_PROGRAM_OPTIONS_NAME "Program Options"
> #define CYGWIN_INFO_CYGWIN_MOUNT_REGISTRY_NAME "mounts v2"
>
>I'm looking to add the following 3 #defines (with possibly better (i.e.,
>longer) names):
>
> #define CYGDRIVE_FLAGS "cygdrive flags"
> #define CYGDRIVE_PREFIX "cygdrive prefix"
> #define CYGDRIVE_DEFAULT_PREFIX "/cygdrive"
>
>Note that path.cc already includes both so I'm quite willing to use
>either.
I think that you mean cygwin/version.h. You're right. That is the
right place for it. I was going to suggest this but somehow I thought
that that header file wasn't available outside of the winsup tree. But,
of course it is.
The naming should be consistent, though. This should be
CYGWIN_INFO_CYGDRIVE_FLAGS, etc.
cgf