Re: A proposed solution for svn admin directory names
From: Brass Tilde <brasstilde_at_insightbb.com>
Date: 2005-06-29 19:52:01 CEST
> > Calling getenv() that often is horrible.
Without looking at the code reading configuration options and using them (and likely not understanding it if I did), what about
I'll presume for the sake of argument that the options in the configuration file are read when the svn program starts, and saved in
Instead of calling getenv() in the #define, call something that reads the configuration structure and gets the SVN_ADM_DIR value.
So, to modify Joseph Galbraith's snippet a wee bit:
char* getadmdir()
return szAdmDir;
#define SVN_WC_ADM_DIR_NAME getadmdir()
No massive code changes (unless that #define is present in every source file that uses it). No dependence on environment. Still
Brad
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.