Commit 90df0db3 authored by Glenn Morris's avatar Glenn Morris
Browse files

* src/nsterm.m (ns_exec_path, ns_load_path): Use SEPCHAR

(rather than hard-coding the path separator).
parent 3f750e43
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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment