Re: Function to do runtime relative directory mapping

From: reina_ga(at)hotmail(dot)com (Tony Reina)
To: pgsql-patches(at)postgresql(dot)org
Subject: Re: Function to do runtime relative directory mapping
Date: 2004-05-06 08:22:45
Message-ID: 272e4be7.0405060022.4000036e@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32 pgsql-patches

pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Karel Zak 2004-05-06 08:25:45 Re: [HACKERS] Weird prepared stmt behavior
Previous Message Richard Huxton 2004-05-06 07:51:05 Re: ALTER TABLE TODO items

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Andrew Dunstan 2004-05-06 11:50:09 Re: Function to do runtime relative directory mapping
Previous Message Tom Lane 2004-05-05 13:55:35 Re: [PATCHES] Function to do runtime relative directory

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2004-05-06 11:50:09 Re: Function to do runtime relative directory mapping
Previous Message Fabien COELHO 2004-05-06 07:26:38 new aggregate functions v3