default cygdrive path prefix #define

Jason Tishler Jason.Tishler@dothill.com
Sat Nov 4 21:02:00 GMT 2000


Chris,

On Fri, Nov 03, 2000 at 05:10:35PM -0500, Christopher Faylor wrote:
> On Fri, Nov 03, 2000 at 05:01:24PM -0500, Jason Tishler wrote:
> >I may need to set the default cygdrive path prefix in setup.exe to
> >implement the following:
> >
> >    http://sources.redhat.com/ml/cygwin/2000-11/msg00160.html
> >
> >In order to keep setup.exe consistent with cygwin1.dll, they need to
> >share a #define for the default cygdrive path prefix.  Where is the best
> >place to put this new #define?
> 
> /usr/include/sys/cygwin.h (aka winsup/cygwin/include/sys/cygwin.h) is
> probably the best place.

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.

Thanks,
Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com


More information about the Cygwin-developers mailing list