(NSCharacterSet_PATH): New macro, replacing BITMAP_PATH. Value

partially determined by GNUSTEP_INSTALL_PREFIX.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1704 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-09-07 17:45:08 +00:00
parent 4701ec747e
commit fecb3e568c

View file

@ -27,9 +27,8 @@
#include <Foundation/NSData.h>
#include <Foundation/NSLock.h>
/* FIXME: Where should bitmaps go? Maybe should be defined with configure */
#ifndef BITMAP_PATH
#define BITMAP_PATH @"/usr/local/share/objects"
#ifndef NSCharacterSet_PATH
#define NSCharacterSet_PATH OBJC_STRINGIFY(GNUSTEP_INSTALL_PREFIX) @"/share"
#endif
/* A simple array for caching standard bitmap sets */
@ -75,7 +74,7 @@ static NSLock* cache_lock = nil;
NS_DURING
path = [NSBundle pathForResource:setname
ofType:@"dat"
inDirectory:BITMAP_PATH
inDirectory:NSCharacterSet_PATH
withVersion:0];
/* This is for testing purposes */
if (path == nil || [path length] == 0)