зеркало из https://github.com/mozilla/pjs.git
fixing merge problem of windows not looking for components in components directory - dp & akkana
This commit is contained in:
Родитель
3c1afb1311
Коммит
98c2a5c446
|
@ -1573,14 +1573,7 @@ nsComponentManagerImpl::AutoRegister(RegistrationTime when,
|
|||
}
|
||||
}
|
||||
#else
|
||||
//XXX get default pathlist from registry
|
||||
//XXX Temporary hack. Registering components from current directory
|
||||
#ifdef XP_UNIX
|
||||
const char *defaultPathList = "./components";
|
||||
#else
|
||||
// XXX This will change to ./components very soon
|
||||
const char *defaultPathList = ".";
|
||||
#endif
|
||||
SyncComponentsInPathList(defaultPathList);
|
||||
#endif
|
||||
return NS_OK;
|
||||
|
@ -1627,11 +1620,7 @@ nsComponentManagerImpl::SyncComponentsInDir(const char *dir)
|
|||
unsigned int n = strlen(fullname);
|
||||
if (n+1 < sizeof(fullname))
|
||||
{
|
||||
#ifdef XP_WIN
|
||||
fullname[n] = PR_GetDirectorySeparator();
|
||||
#else
|
||||
fullname[n] = '/';
|
||||
#endif
|
||||
n++;
|
||||
}
|
||||
char *filepart = fullname + n;
|
||||
|
|
|
@ -185,8 +185,9 @@ protected:
|
|||
*
|
||||
* alpha0.20 : First time we did versioning
|
||||
* alpha0.30 : Changing autoreg to begin registration from ./components on unix
|
||||
* alpha0.40 : repository -> component manager
|
||||
*/
|
||||
#define NS_XPCOM_COMPONENT_MANAGER_VERSION_STRING "alpha0.40"
|
||||
#define NS_XPCOM_COMPONENT_MANAGER_VERSION_STRING "alpha0.41"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/**
|
||||
|
|
|
@ -1573,14 +1573,7 @@ nsComponentManagerImpl::AutoRegister(RegistrationTime when,
|
|||
}
|
||||
}
|
||||
#else
|
||||
//XXX get default pathlist from registry
|
||||
//XXX Temporary hack. Registering components from current directory
|
||||
#ifdef XP_UNIX
|
||||
const char *defaultPathList = "./components";
|
||||
#else
|
||||
// XXX This will change to ./components very soon
|
||||
const char *defaultPathList = ".";
|
||||
#endif
|
||||
SyncComponentsInPathList(defaultPathList);
|
||||
#endif
|
||||
return NS_OK;
|
||||
|
@ -1627,11 +1620,7 @@ nsComponentManagerImpl::SyncComponentsInDir(const char *dir)
|
|||
unsigned int n = strlen(fullname);
|
||||
if (n+1 < sizeof(fullname))
|
||||
{
|
||||
#ifdef XP_WIN
|
||||
fullname[n] = PR_GetDirectorySeparator();
|
||||
#else
|
||||
fullname[n] = '/';
|
||||
#endif
|
||||
n++;
|
||||
}
|
||||
char *filepart = fullname + n;
|
||||
|
|
|
@ -185,8 +185,9 @@ protected:
|
|||
*
|
||||
* alpha0.20 : First time we did versioning
|
||||
* alpha0.30 : Changing autoreg to begin registration from ./components on unix
|
||||
* alpha0.40 : repository -> component manager
|
||||
*/
|
||||
#define NS_XPCOM_COMPONENT_MANAGER_VERSION_STRING "alpha0.40"
|
||||
#define NS_XPCOM_COMPONENT_MANAGER_VERSION_STRING "alpha0.41"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче