mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Standardize paths
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22141 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d37d3e6766
commit
e85198f38b
2 changed files with 4 additions and 1 deletions
|
@ -42,7 +42,7 @@ GS_EXPORT const char *NSGetSizeAndAlignment(const char *typePtr,
|
||||||
/**
|
/**
|
||||||
* OpenStep spec states that log messages go to stderr, but just in case
|
* OpenStep spec states that log messages go to stderr, but just in case
|
||||||
* someone wants them to go somewhere else, they can implement a function
|
* someone wants them to go somewhere else, they can implement a function
|
||||||
* like this.
|
* like this and assign a pointer to it to _NSLog_printf_handler.
|
||||||
*/
|
*/
|
||||||
typedef void NSLog_printf_handler (NSString* message);
|
typedef void NSLog_printf_handler (NSString* message);
|
||||||
GS_EXPORT NSLog_printf_handler *_NSLog_printf_handler;
|
GS_EXPORT NSLog_printf_handler *_NSLog_printf_handler;
|
||||||
|
|
|
@ -224,6 +224,7 @@ getPath(NSString *path)
|
||||||
{
|
{
|
||||||
path = [gnustepConfigPath stringByAppendingPathComponent:
|
path = [gnustepConfigPath stringByAppendingPathComponent:
|
||||||
[path substringFromIndex: 2]];
|
[path substringFromIndex: 2]];
|
||||||
|
path = [path stringByStandardizingPath];
|
||||||
}
|
}
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
@ -431,6 +432,8 @@ GNUstepConfig(NSDictionary *newConfig)
|
||||||
file = [file substringFromIndex: 2];
|
file = [file substringFromIndex: 2];
|
||||||
// Join the two together
|
// Join the two together
|
||||||
file = [path stringByAppendingPathComponent: file];
|
file = [path stringByAppendingPathComponent: file];
|
||||||
|
// Standardize
|
||||||
|
file = [file stringByStandardizingPath];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([file isAbsolutePath] == NO)
|
if ([file isAbsolutePath] == NO)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue