This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: Avoid collisions between parallel installations of Cygwin
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin-developers at cygwin dot com
- Date: Wed, 21 Oct 2009 17:47:40 +0100
- Subject: Re: Avoid collisions between parallel installations of Cygwin
- References: <4ADF3287.8080307@cwilson.fastmail.fm>
Charles Wilson wrote:
> ...unless the magic ID strings themselves were also each part of the
> struct.
I must admit I took that as read; as you say, any technique relying on a
fixed memory offset between separate C language-level data objects is doomed
to fail sooner or later, but if the string is included as constant data in the
struct and we're only modifying one struct in-place which obeys known and
predictable layout rules imposed by the compiler, we'll be OK.
> We'd LIKE to be able to "switch" its mode without recompiling, and this
> last bit is the tail wagging the dog here. Sure, a general approach to
> .rsrc-style resources in the cygwin1.dll is nice -- but is it necessary?
It's an absolutely standard mechanism in all win32 executables everywhere,
of which the cygwin dll is one; I see no reason to not use it on any kind of
principle.
I did think this overall change wasn't intended to go in until after the
release, though?
cheers,
DaveK