[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Issues 584 & 603 -- / vs. \

From: Martijn Boekhorst <subversion_at_boekhorst.net>
Date: 2002-06-25 22:08:14 CEST

This is really really really akward to code - and I find myself making _alloca
macros to get around the issues.

Doesn't it make more sense for a win32 version to use the \ path convention and
perhaps layer/wrap these things with either macros or stubs? Using MAX_PATH as
a constant we can allocate one / thread and use thread local storage (related
question, are the client libs thread-safe?), then, a macro could be included
for windows clients to convert these and wrap the original call.

Eg. if I may be nasty :
#define svn_wc_check_wc(path, is_wc, pool)\
  svn_wc_check_wc(PATH_LOCAL_TO_SVN(path), is_wc, pool);

at the bottom of the file - or better - in a seperate include file (keeping the
original relatively muck-free), included conditionally at the bottom of the svn
include file (I don't know - making it up).

Just thinking out loud here and these are probably silly thoughts, but using
forward slashes on a win32 platform is really quite 'strange', regardless of
URL formatting which needs translation anyway; and in addition represents a
barrier for entry since I couldn't find it documented anywhere (which could be
my failure to look for it ofcourse).

To-do or Too-bad?

Cheers, Martijn.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 25 22:08:42 2002

This is an archived mail posted to the Subversion Dev mailing list.