* src/nsterm.m (ns_exec_path, ns_load_path): Use SEPCHAR
(rather than hard-coding the path separator).
This commit is contained in:
parent
3f750e43e8
commit
90df0db330
2 changed files with 7 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-08-02 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* nsterm.m (ns_exec_path, ns_load_path): Use SEPCHAR rather than
|
||||
hard-coding the path separator.
|
||||
|
||||
2012-08-01 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Use "ASET (a, i, v)" rather than "AREF (a, i) = v".
|
||||
|
|
|
@ -329,8 +329,7 @@ Updated by Christian Limpach (chris@nice.ch)
|
|||
NSString *binDir = [bundle bundlePath];
|
||||
NSString *resourcePath, *resourcePaths;
|
||||
NSRange range;
|
||||
BOOL onWindows = NO; /* FIXME determine this somehow */
|
||||
NSString *pathSeparator = onWindows ? @";" : @":";
|
||||
NSString *pathSeparator = [NSString stringWithFormat: @"%c", SEPCHAR];
|
||||
NSFileManager *fileManager = [NSFileManager defaultManager];
|
||||
NSArray *paths;
|
||||
NSEnumerator *pathEnum;
|
||||
|
@ -377,8 +376,7 @@ Updated by Christian Limpach (chris@nice.ch)
|
|||
NSBundle *bundle = [NSBundle mainBundle];
|
||||
NSString *resourceDir = [bundle resourcePath];
|
||||
NSString *resourcePath, *resourcePaths;
|
||||
BOOL onWindows = NO; /* FIXME determine this somehow */
|
||||
NSString *pathSeparator = onWindows ? @";" : @":";
|
||||
NSString *pathSeparator = [NSString stringWithFormat: @"%c", SEPCHAR];
|
||||
NSFileManager *fileManager = [NSFileManager defaultManager];
|
||||
BOOL isDir;
|
||||
NSArray *paths = [resourceDir stringsByAppendingPaths:
|
||||
|
|
Loading…
Add table
Reference in a new issue