Re: Function to do runtime relative directory mapping - Mailing list pgsql-patches

From reina_ga@hotmail.com (Tony Reina)
Subject Re: Function to do runtime relative directory mapping
Date
Msg-id 272e4be7.0405060022.4000036e@posting.google.com
Whole thread Raw
In response to Function to do runtime relative directory mapping  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Function to do runtime relative directory mapping  ("Andrew Dunstan" <andrew@dunslane.net>)
List pgsql-patches
pgman@candle.pha.pa.us (Bruce Momjian) wrote in message >   extern void canonicalize_path(char *path);
> + #ifndef WIN32
> + #define ISSEP(c)    ((c) == '/')
> + #else
> + #define ISSEP(c)    ((c) == '/' || (c) == '\\')
> + #endif


I've seen references to this "canonicalization" of the Windows \
character for the win32 port. I don't claim to be a programming guru,
but I recently read Jeff Cogswell's C++ for Dummies and he says (p.
546 "Separating a path name") that you can use Unix-style / to
separate directories in your programming and Windows will know what to
do. In other words, you don't need \\ to separate directory names. /
should work just fine.

Perhaps MinGW and the gcc compiler on Windows behaves differently(?)

Then again, perhaps there are other factors that I'm not considering.

-Tony

pgsql-patches by date:

Previous
From: Fabien COELHO
Date:
Subject: new aggregate functions v3
Next
From: "Andrew Dunstan"
Date:
Subject: Re: Function to do runtime relative directory mapping