lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
***BOGO*** Re: [Mingw-users] [SPAM] Re: Re: imlib2
On Friday 02 May 2008 11:33, Ramiro Polla wrote:
> > [It shouldn't be necessary...]
> > ...to replace slashes in path names by backslashes; MS-Windows is
> > perfectly happy to resolve path names expressed with the *nix style
> > slash as an alternative to its default backslash, and always has
> > been; even MS-DOS before it could handle this.
>
> LoadLibrary()
> http://msdn.microsoft.com/en-us/library/ms886736.aspx
Hmm. That's the first time I've ever seen it stated "be sure to use
backslashes, not slashes". Does LoadLibrary() *really* fail if you
ignore this advice? If so, then it isn't consistent with the normal
behaviour of the Windows API.
BTW, the link you provided relates specifically to WinCE, but the same
statement appears in MSDN's more general Windows documentation too.
> IIRC dlfcn-win32 does this by itself, so it should be fine to use
> forward slashes. But I only wrote dlfcn-win32 after this patch.
In `man' I use a path name normalisation function, to help with various
required manipulations; in that case, I normalise to slashes, because
it is more convenient for commonality with the POSIX code, but my
function, (which performs the normalisation in the wchar_t domain),
could equally well normalise to backslashes.
BTW, I know you've suggested it before; would you still be interested in
distributing dlfcn-win32 as a User Contributed add-on for MinGW, making
it directly available from our download page, as a possible convenience
for MinGW users?
> Oh, I am completely aware that this patch is an ugly mess...
Understood. My comments weren't intended so much as criticism--there's
nothing inherently wrong with how you did it--but rather as just one or
two tips to suggest how you might have done it more cleanly.
Regards,
Keith.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users